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.3.tar.gz (4.3 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.3-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.3.tar.gz
Algorithm Hash digest
SHA256 c98314f52aab7830941da6431e0935fdbbe52328575cdb0f31f7420c1f503e4c
MD5 6ec21b6af6b136042d0a10ed0bb7ed09
BLAKE2b-256 e15c132a03b2d192d958e8579de9d0a36ed2a3dc251ddd3b147a088adc0c12a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5462104f44417b0f4f6d1ea81addf0a498fe11517c1e9eb051ccb267886034c3
MD5 2670c11a1c39d7993be34e8a5b93c1df
BLAKE2b-256 66c2157787e44d96a1decb481cf0930f897138983a6a5d9c59f95cfa2c447243

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