Skip to main content

Simplified API to access the PLESK XML API

Project description

pypleski makes requests to the Plesk XML API super easy. Setup your client and write your request with just a few lines of code.

# pypleski 0.0.5

Bugfixes:

  • PleskRequestPacket.to_string() no longer returns a bytestring (b’’)

Changes:

  • merged PyPleskiApiClient and PleskApiClient into PleskApiClient class to improve naming consistency

  • the managers module is deprecated

  • new modules where introduced and provide functions to forge requests

  • add_filter() method and filter variable where removed PleskRequestPacket

  • add_data_to_node() method in PleskRequestPacket now makes sure the right symbol(_/-) is used in tag names

# managers module deprecated.

The managers module will be removed with release of 0.0.7

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

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


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.5.tar.gz (24.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page