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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.2.tar.gz
Algorithm Hash digest
SHA256 75b78943b3ebee4dd17f0bd13aad208aab43db2f3879542e600ed95345dfbe51
MD5 bd0c48dbc72827e189cfdbfef04f53db
BLAKE2b-256 3794a4ad67edbc1d5867f35d8f725389232c45f819368cff7db2dbb32315a233

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 46f9137cb8ed046b79def651ee78eac92d05c48fcaec89e535866054698414de
MD5 ffa274fcd0c79e806d3fbb0d4c420ffb
BLAKE2b-256 de9e9fb5fa66c4dea47e97deb9d441750557c3a976748ff527f79e04564c7a08

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