Skip to main content

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

directadminapi_sgs_shohani-0.0.6.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

directadminapi_sgs_shohani-0.0.6-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file directadminapi_sgs_shohani-0.0.6.tar.gz.

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.6.tar.gz
Algorithm Hash digest
SHA256 00a20a3d389152ac082d929ed02e405264de6f396dbe0558dd8bcf757caa8e22
MD5 8a67d9742d29b5e2d3391262e9a3de48
BLAKE2b-256 0c0758419107e45943662c768c355d112910bc0bb6b1d33da1cddd3f0bce249a

See more details on using hashes here.

File details

Details for the file directadminapi_sgs_shohani-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 025c0a5afd3e15e9e7630af65bbe08a488b50a2163f8b4885fabaab66c1e1571
MD5 8e00ff6888e03c414c97668d94cc6f18
BLAKE2b-256 9857f0ba9cdb2c35c8984f5db002d9ed7f1dce989e27004802a077ec7f55c8c6

See more details on using hashes here.

Supported by

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