iamkubi / pydactyl

Python wrapper for the Pterodactyl Panel API
MIT License
69 stars 21 forks source link

Client API refactor #43

Closed iamkubi closed 2 years ago

iamkubi commented 2 years ago

Adds all missing client API endpoints. Refactors the layout of the client methods to allow for better organization with the growing number of supported endpoints.

This will likely break any code that uses the old client methods.

codecov-commenter commented 2 years ago

Codecov Report

Merging #43 (3c48e99) into master (d30eba6) will increase coverage by 7.26%. The diff coverage is 95.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #43      +/-   ##
==========================================
+ Coverage   76.40%   83.66%   +7.26%     
==========================================
  Files          13       22       +9     
  Lines         462      747     +285     
==========================================
+ Hits          353      625     +272     
- Misses        109      122      +13     
Impacted Files Coverage Δ
pydactyl/api/client/account/base.py 72.41% <72.41%> (ø)
pydactyl/api/client/servers/base.py 80.64% <80.64%> (ø)
pydactyl/api/client/servers/users.py 96.15% <96.15%> (ø)
pydactyl/api/client/servers/schedules.py 97.77% <97.77%> (ø)
pydactyl/__init__.py 100.00% <100.00%> (ø)
pydactyl/api/base.py 85.71% <100.00%> (ø)
pydactyl/api/client/client_api.py 100.00% <100.00%> (ø)
pydactyl/api/client/servers/backups.py 100.00% <100.00%> (ø)
pydactyl/api/client/servers/databases.py 100.00% <100.00%> (ø)
pydactyl/api/client/servers/files.py 100.00% <100.00%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d30eba6...3c48e99. Read the comment docs.