Skip to main content

Python interface to the WHMCS API.

Project description


WHMCSpy is a Python interface to the WHMCS REST API.

[![PyPI version](](
[![Documentation Status](](

## Usage

Create a WHMCS interface with the API URL and credentials and use it to
call the API.

import whmcspy

whmcs = whmcspy.WHMCS(

In general API methods can be called as methods in the WHMCS class. For
available API methods see the [WHMCS API reference](
Note that the casing of the methods differ from the API actions. While the
API actions are CamelCased the methods are snake_cased.

### Calling unimplemented actions

Not all API actions are implemented as Python methods (they will be
implemented as required, of course pull-requests are accepted). In order to
call actions that are not yet implemented [call()] can be used. Example:

response =

See the [call()] documentation for more info.

Some actions return batches of results. To iterate over all results multiple
requests need to be done. For this a convenience method is added:
This method is a generator which yields batches. Using keywords additional
params are accepted. Example:

for response in whmcs.paginated_call(
for order in response['orders']['order']:


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for whmcspy, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size whmcspy-0.3.0.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View
Filename, size whmcspy-0.3.0-py3-none-any.whl (7.8 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page