Skip to main content

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 pdisk

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.

Metadata

Release files for img-captcha 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for img-captcha 0.0.1
File Size Uploaded
img-captcha-0.0.1.tar.gz 17.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for img-captcha 0.0.1
File Interpreter ABI Platform
img_captcha-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 35.1 kB

Release files / img-captcha-0.0.1.tar.gz

Download URL img-captcha-0.0.1.tar.gz
Size 17.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ba3e2f3854b5f14d9c53a83077b8ff5f3311778b15d9e14a6ade7e02553398b7
BLAKE2b-256 checksum
How to use checksums
7ae715a3efaac5733fe9a456c937fc0cea4edaaed32edb30221305fae3760c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release files / img_captcha-0.0.1-py3-none-any.whl

Download URL img_captcha-0.0.1-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
167e16a43be88dd693f8eb06335534c19fd4ad14e324c6ef23728b77c3dbf735
BLAKE2b-256 checksum
How to use checksums
445b988e73d53af0e21d72c884b1dfee4485e926f213f56f3dc3b49d04c324e0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.5

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page