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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.7.tar.gz
Algorithm Hash digest
SHA256 10db725ba967ac03b736224b36435fd6a041224cf570710edcaaed7332d08d31
MD5 b805a5c6aa5f62bd22fe546da7f6d24f
BLAKE2b-256 0716434d9dc626fcddd1b5f4dcea13e88351cd877fdf492d1c1e29ca7b1f73dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 34e1c4aafb59481a24e9217e41d4d068c850222f0254ef3fc8e65cf85ce3fdc7
MD5 e18b28611c2126caa3370ab5dec08218
BLAKE2b-256 3c1da80aeb30710b02f9553e84fea85a5b1943b4dfb10781449a382a8c061da8

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