Simplified API to access the PLESK XML API
Project description
pypleski 0.0.7 - under development
Pypleski (Pythonic Plesk Interface) is a collection of functions and classes that aim to ease the use of the Plesk XML API. The most important classes being PleskRequestPacket and PleskResponsePacket which are designed to represent the Request and Response Packets defined by Plesk.
Bugfixes:
- Fixed the Filter bug in get and delete related functions of the database and the customer module
Changes:
- Merged PyPleskiApiClient with PleskApiClient.
- New Documentation is online: https://pypleski.codingcow.de
- Removed the Managers entirely
- Removed the 'Meta' classes from all modules.
- PleskApiClient
Added Modules
- Webhosting
TODO
Core Imporvements:
- Implement Logging in Api Client Classes
- Clean up Api Client Classes
- Review all Modules
- Improve the Docs
Planned Modules:
- reseller
- reseller_plan
- webspace
- service_plan
- service_plan_addon
Managers module deprecated.
The managers module was removed with version 0.0.5.
Use the PleskApiClient Class's request method to retrieve in conjunction with the several plypleski modules functions.
We moved away from building ManagerClasses and instead provide a functions based approach
this allows usage like this and makes managers obsolete
python
from pypleski.core import PleskApiClient
from pypleski.datbase import get_database
#create client object
client = PleskApiClient("localhost")
#add your token or use set_credentials method
client.set_access_token("IamAValidTokenLOL")
#make your request
datbase_info = client.request(get_database("webspace-name", "domain.name"))
#print out the response
print(database_info)
See https://pypleski.codingcow.de to read the docs.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file pypleski-0.0.7.tar.gz
.
File metadata
- Download URL: pypleski-0.0.7.tar.gz
- Upload date:
- Size: 36.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54bb02412b4c739cab1648c557296e031a13efa525ccbef12fb165f73fde2f7a |
|
MD5 | d1717ba68596680d14e0af4b30d489e1 |
|
BLAKE2b-256 | 7bfc5fc0f9d79ca567dca6f10fa6696dde65f8c2b6bafe30691a9a6c443a1983 |