A simple and easy-to-use Python wrapper for Real-Debrid API (https://api.real-debrid.com)
Project description
RD Wrapper
A simple and easy-to-use Python wrapper for Real-Debrid API.
Installation (from PyPI)
python -m pip install rd-wrapper
Example Usage
from rd_wrapper import RDW
# Initialize the wrapper with your API token or username and password
rdw = RDW(api_token='YOUR_API_TOKEN', username='YOUR_USERNAME', password='YOUR_PASSWORD', anonymous_access=False)
# Getting account info
print(f'Account E-Mail (str): {rdw.account_email}')
print(f'Is Account Premium? (bool): {rdw.is_premium_account}')
print(f'Account Type (str): {rdw.account_type}')
print(f'Account Plan Expiration Timestamp (int): {rdw.premium_plan_expiration_timestamp}')
print(f'Account Fidelity Points (int): {rdw.account_fidelity_points}')
print(f'Account ID (int): {rdw.account_id}')
print(f'Account Username (str): {rdw.account_username}')
print(f'Account Avatar URL (str): {rdw.account_avatar_url}')
print(f'Account Language Name (str): {rdw.account_language_name}')
print(f'Account Language Code (str): {rdw.account_language_code}')
# Retrieve server time and server iso time
print(f'Server Time (str|int): {rdw.get_server_time(unix_timestamp=False)}')
print(f'Server ISO Time (str|int): {rdw.get_server_iso_time(unix_timestamp=True)}')
# Check if the url is supported
print(f'Is URL Supported? (bool): {rdw.is_url_supported(url='http(s)://...', password=None)}')
# Unrestricting a single URL (returns a dict with the download url and other info)
print(f'Unlimited URL Data (dict): {rdw.get_unlimited_url_data(url='http(s)://...', password=None, remote_traffic=False)}')
# Unrestricting a folder URL (returns a list of download URLs)
print(f'Original/Unlimited Folder URLs (list): {rdw.get_unlimited_folder_url_list(url='http(s)://...', unrestrict_urls=True)}')
# --> More methods are available to use, check the source code for more info
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
rd_wrapper-0.0.5.tar.gz
(9.2 kB
view details)
Built Distribution
File details
Details for the file rd_wrapper-0.0.5.tar.gz
.
File metadata
- Download URL: rd_wrapper-0.0.5.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb7ce8301406ec63fb2bb3eefabeccd035299f1756775afbbf82482df26c8291 |
|
MD5 | d3e64e7253ed61fa84529e7bcaf7ad6d |
|
BLAKE2b-256 | 2bbd58073d9549d0623832481c954863b7a5e6eccf6247bcfabf0c6806d5d8ff |
File details
Details for the file rd_wrapper-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: rd_wrapper-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 947411745353bcbafbea537c62e0470c4c312d3ca3400c0aaeb5f549473f61c0 |
|
MD5 | 7f3bd40d8e3da2c96c06d234fb390ecc |
|
BLAKE2b-256 | 1646ad06e20093b226a2ad32c2f0f39f006d7a41a0da22729b391572e42c980d |