PteroDotNet 0.1.0
dotnet add package PteroDotNet --version 0.1.0
NuGet\Install-Package PteroDotNet -Version 0.1.0
<PackageReference Include="PteroDotNet" Version="0.1.0" />
<PackageVersion Include="PteroDotNet" Version="0.1.0" />
<PackageReference Include="PteroDotNet" />
paket add PteroDotNet --version 0.1.0
#r "nuget: PteroDotNet, 0.1.0"
#:package PteroDotNet@0.1.0
#addin nuget:?package=PteroDotNet&version=0.1.0
#tool nuget:?package=PteroDotNet&version=0.1.0
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()andSomeActionAsync(). - Both Client & Admin API support through the
PteroClientandPteroAdminclasses.
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 intorelease.
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
developmentbranch. - 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
developmentbranch. - 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 | Versions 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. |
-
net5.0
- Newtonsoft.Json (>= 13.0.3)
-
net6.0
- Newtonsoft.Json (>= 13.0.3)
-
net7.0
- Newtonsoft.Json (>= 13.0.3)
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
-
net9.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.