Python library to interact with cPanel API
Install
pip install cpanel-client
Create a new cPanel account
server = ServerAPI('WHM_USERNAME', 'WHM_PASSWORD', 'https://your-whm-url.com', 2087)
# create account
result = server.create_account('USER_EMAIL_ADDRESS', 'USER_DOMAIN', 'package_name')
print(result)
success = result['success']
self.assertEqual(success, 1)
if success == 1:
print('New cPanel Account created')
# Suspend account
suspend_result = server.suspend_account(c_username)
# Terminate account
destroy_result = server.terminate_account(result['username'])
Release files for cpanel-client 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cpanel_client-1.0.0.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cpanel_client-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:7.9 kB
Release files / cpanel_client-1.0.0.tar.gz
| Download URL | cpanel_client-1.0.0.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
954e55a312269987607e0b58808e438cc9a4d3ac82389c32efc834e87da45028
|
|
BLAKE2b-256 checksum How to use checksums |
0849e9c20d0b87dd14c3f1abe425b867df67e97a00e229ca887c1506d3934eb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / cpanel_client-1.0.0-py3-none-any.whl
| Download URL | cpanel_client-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dda4279864f180b9b5510da06f9ad4586a41c82729e9fbae8b7ee7ad7b061fa7
|
|
BLAKE2b-256 checksum How to use checksums |
772b063c41cd8f22cc3c9d1e2a3f443637d4d26f4c0b56404221469a15eeb7bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|