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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.5.tar.gz
Algorithm Hash digest
SHA256 e4ea0e56c73ca7bb00eded20f58d9009b3f28e2d483930bb0e05d817a3e7257e
MD5 fad929df0c4615f93d564d6fd604647a
BLAKE2b-256 9c6a2d6dabb376acd8cca4a443962569c7772358d1537046c6c6e2cd64ff301a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for directadminapi_sgs_shohani-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 55d98b349d0cc4d22af6628ceea81a87fd75dabd4e51b3af742ab6082f433b37
MD5 03605aeb7c241564a5de923da4c4d075
BLAKE2b-256 a5b31af1516fae8c99f6389f20b8058b23e02e6fe76358935356abe1545535c9

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