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 pdisk 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdisk-1.0.6.tar.gz | 18.2 kB | Without provenance | Details for pdisk-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pdisk-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for pdisk-1.0.6-py3-none-any.whl |
Total release size: 35.6 kB
Release files / pdisk-1.0.6.tar.gz
| Download URL | pdisk-1.0.6.tar.gz |
|---|---|
| Size | 18.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4d86d128b851b4dc5bca1d6d8071e116c3c9d2086fbf9c45765016123c359593
|
|
BLAKE2b-256 checksum How to use checksums |
803d35b5b9c114bc2ea3644b303198812aa8b19634f25aee25cf669154cad74b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Release files / pdisk-1.0.6-py3-none-any.whl
| Download URL | pdisk-1.0.6-py3-none-any.whl |
|---|---|
| Size | 17.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4e0c36a4002932ccdce21001312bb2d360b1bf53f0f10022ac67766e86868bd
|
|
BLAKE2b-256 checksum How to use checksums |
8befb2afeb9026eba913c61a6fd045ea50464ed5e84d22c83c9156e0e71e5bcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.5
|
Security for pdisk 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.