Simplified API to access the PLESK XML API
Project description
pypleski
pypleski makes requests to the Plesk XML API super easy. Setup your client and write your request with just a few lines of code.
Release 0.0.6
Bugfixes:
- PleskRequestPacket.to_string() no longer returns a bytestring (b'')
- add_data_to_node() method in PleskRequestPacket now makes sure the right symbol(_/-) is used in tag names
Changes:
- removed the managers module
- new modules where introduced and provide functions to forge requests
- add_filter() method and filter variable where removed PleskRequestPacket
How to use:
Use the PleskApiClient Class's request method in conjunction with the several plypleski modules functions to retrieve a PleskResponsePacket. We moved away from building ManagerClasses and instead provide a functions based approach, which allows for simpler use.
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)
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
pypleski-0.0.6.tar.gz
(22.8 kB
view hashes)