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.4.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.4-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.4.tar.gz
Algorithm Hash digest
SHA256 8b9310614f682a347a75f86e3782526fbb2f08edd8bea547a34d43cd49f7bc14
MD5 86ebd05ce5d112a3051ad1c03b14df48
BLAKE2b-256 468e1191888b2be3e537c80c1a8897f3714995b74169986ea5ae571661d4c0b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 01622c4f56740aeb3c22e2eb03f04259ceb1b0acc9be061f6ff68a8e81b8a880
MD5 14417cdc16c3ffbe52d5686b6531e861
BLAKE2b-256 306673a0c138c7d505455caeba30579d729217625a3c97c45a4273f7c2c6879e

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