PteroDotNet 0.1.0

dotnet add package PteroDotNet --version 0.1.0
                    
NuGet\Install-Package PteroDotNet -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PteroDotNet" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PteroDotNet" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="PteroDotNet" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PteroDotNet --version 0.1.0
                    
#r "nuget: PteroDotNet, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PteroDotNet@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PteroDotNet&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=PteroDotNet&version=0.1.0
                    
Install as a Cake Tool

PteroDotNet

Introduction

PteroDotNet is a .NET 5 wrapper for the Pterodactyl Panel API. This library is designed to be easy to use and feature-rich, while also being fully asynchronous. Originally designed for use with Terabit Hosting's Pterodactyl panel, this library is now open-source and available for anyone to use/contribute to.

Features

  • Synchronous and Asynchronous methods. e.g: SomeActionSync()and SomeActionAsync().
  • Both Client & Admin API support through the PteroClient and PteroAdmin classes.

Installation

To install PteroDotNet, you can either download the source code and build it yourself, or you can install it via NuGet.

To install the latest version of PteroDotNet via NuGet, run the following command:

  dotnet add package PteroDotNet

If you want to install a specific version of PteroDotNet, you can specify the version number in the command:

  dotnet add package PteroDotNet --version <version>

Usage

To start using PteroDotNet, you'll need to create an instance of either the PteroAdmin or PteroClient class, depending on the type of token.

For Client Tokens

using PteroDotNet;

var pteroClient = new PteroClient("https://panel.example.com", "API_KEY");

For Admin Tokens

using PteroDotNet;

var pteroAdmin = new PteroAdmin("https://panel.example.com", "API_KEY");

If you initialize the PteroAdmin class with a Client token, all endpoints WILL fail!

Contributing

If you'd like to contribute to PteroDotNet, feel free to fork the repository and submit a pull request. Some features may not be implemented by myself due to the fact that I don't use them, so feel free to add them 😃 We're always looking to improve PteroDotNet, so any contributions are welcome.

Branches

  • release - The latest stable release of PteroDotNet.
  • development - The latest development version of PteroDotNet.
  • staging - branch for testing release candidates before merging into release.

Setting up your IDE

PteroDotNet is designed to be easy to work with. To set up your IDE, follow the steps below:

  • Use GitHub Desktop (Recommended) or Git to clone the repository.
  • Create a branch off the development branch.
  • Open the project in your IDE of choice (Visual Studio, Rider, etc.).
  • Start coding!

Building the project

To build the project, you can use the following commands:

  dotnet build

Creating a pull request

To create a pull request, follow the steps below:

  • Push your changes to your fork.
  • Create a pull request from your fork to the development branch.
  • Wait. We'll try to review your pull request as soon as possible.

License

PteroDotNet is licensed under the BSD 3-Clause License. See the LICENSE file for more information.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0 247 4/2/2025
0.0.4 217 4/2/2025
0.0.3 276 3/6/2025
0.0.2 167 2/24/2025