Skip to main content

RD Wrapper

GitHub Actions Workflow Status PyPI - Version PyPI - Python Version

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)

# Extracting current API token from the account
print(f'Current API Token (str): {rdw.get_current_api_token(rdw.auth_token)}')

# Generating new API token
print(f'New API Token (str): {rdw.generate_new_api_token(rdw.auth_token)}')

# Extracting account information
print(f'Is Anonymous Access? (bool): {rdw.is_anonymous_access}')
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 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_supported_url(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)}')

# --> Other methods are available to use, check the source code and the documentation for more information

Metadata

Release files for rd-wrapper 0.0.8

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

Source distribution (sdist)

Source distribution for rd-wrapper 0.0.8
File Size Uploaded
rd_wrapper-0.0.8.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rd-wrapper 0.0.8
File Interpreter ABI Platform
rd_wrapper-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / rd_wrapper-0.0.8.tar.gz

Download URL rd_wrapper-0.0.8.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5480472648164a4230615be8166c1c3621e7529126e7e7d69dd08609fc3cfba9
BLAKE2b-256 checksum
How to use checksums
ccf25405675cdfffa21d2c88e5e4d1c9fd301239b3c7959b39930b285e36c4c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / rd_wrapper-0.0.8-py3-none-any.whl

Download URL rd_wrapper-0.0.8-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5cf1ae251c9d4e5a93a7902250d9a621caa784dc6d815210c328847908408c71
BLAKE2b-256 checksum
How to use checksums
a41c9b98d7e30426652aeffe2efa5ef5af31f6ccebd25e054548de6f87351a34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

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