DirectAdmin API for Python
Project description
DirectAdmin API for Python
This package help you manage DirectAdmin control panel via API.
Installation
pip install DirectAdminAPI-SGS-shohani
Sample usage
from DirectAdminAPI_SGS_shohani.api import PrettyAPI
api = PrettyAPI(username=admin_da_user,password=admin_da_pwd,server=da_url,json=True)
#Get list of users that has access to a protected folder in DirectAdmin
da_users = api.get_protected_directory_users('/domains/test.com/public_html/manager')
users = da_users['users']
for key in users:
print(users[key])
#search recursively for test.txt in root path
da_files = api.search_files( '/','test.txt' , recursive=True)
for key in da_files:
print(da_files[key])
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file directadminapi_sgs_shohani-0.0.2.tar.gz.
File metadata
- Download URL: directadminapi_sgs_shohani-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75b78943b3ebee4dd17f0bd13aad208aab43db2f3879542e600ed95345dfbe51
|
|
| MD5 |
bd0c48dbc72827e189cfdbfef04f53db
|
|
| BLAKE2b-256 |
3794a4ad67edbc1d5867f35d8f725389232c45f819368cff7db2dbb32315a233
|
File details
Details for the file directadminapi_sgs_shohani-0.0.2-py3-none-any.whl.
File metadata
- Download URL: directadminapi_sgs_shohani-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f9137cb8ed046b79def651ee78eac92d05c48fcaec89e535866054698414de
|
|
| MD5 |
ffa274fcd0c79e806d3fbb0d4c420ffb
|
|
| BLAKE2b-256 |
de9e9fb5fa66c4dea47e97deb9d441750557c3a976748ff527f79e04564c7a08
|