Skip to main content

An Unofficial Asynchronous Python version of elevenlabs API wrapper

Project description

PDisk.pro API Wrapper

A Python package to interact with the unofficial API of PDisk.pro.

Installation

To install the package, you can use pip:

pip install elevenlab

Usage

To use the package, you must first create an instance of the Pdisk class, passing your API key as a parameter:

from pdisk import Pdisk

api_key = "YOUR_API_KEY_HERE"
pdisk = Pdisk(api_key)

Account

You can retrieve your account info and stats using the following methods:

account_info = await pdisk.account_info()
print(account_info.email, account_info.balance, account_info.storage_used)

account_stats = await pdisk.account_stats()
for stat in account_stats:
    print(f"{stat.profit_total} : {stat.downloads} : {stat.refs}")

File Upload

You can upload files using the following methods:

# Upload a file from local storage
responses = await pdisk.upload_file("/path/to/file")
for response in responses:
    print(response)

# Upload a remote file
responses = await pdisk.upload_remote_file("https://example.com/file.mp4", folder_id=12345)
for response in responses:
    print(response)

You can check the upload status of a file using the following method:

file_code = "FILE_CODE"
status = await pdisk.check_upload_status(file_code)
print(status)

File Management

You can retrieve information about a file using the following method:

file_code = "FILE_CODE"
file_info = await pdisk.file_info(file_code)
for info in file_info:
    print(info)

You can also retrieve a list of files using the following method:

files = await pdisk.get_file_list(page=1, per_page=20)
for file in files:
    print(file)

Check Documentaion For More ... comming soon ...

License

This project is licensed under the MIT License (c) 2023 kalanakt.

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

elevenlab-0.0.1.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

elevenlab-0.0.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file elevenlab-0.0.1.tar.gz.

File metadata

  • Download URL: elevenlab-0.0.1.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for elevenlab-0.0.1.tar.gz
Algorithm Hash digest
SHA256 776957105b516c78c3aa5454c52e50364a50b26b5a4087dd2995006a80e50f7b
MD5 0d8c244cb5627689983913bb623beeb6
BLAKE2b-256 6c45caf88f79a02df9ae6759610f8d74621f442dcf4d315111f016b00f7fbc45

See more details on using hashes here.

File details

Details for the file elevenlab-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: elevenlab-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.5

File hashes

Hashes for elevenlab-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 87361a58627955f3b4979a7840b248dc839389c38ef84b33c2ca5165329da111
MD5 9d34b17181b1e8f4265d0bbcf2061245
BLAKE2b-256 a1f0d47effe32f7ba3e4d4e7e7348b7e15d649ae65b037ba501792fcf6d9d736

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page