Skip to content

s-krilla/rd_api_py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rd_api_py

Real Debrid API Library for Python

Installation

Install the package

python -m pip install rd_api_py

Set .env environment variables in rd_refresh or your script

RD_APITOKEN="your_token_here"

# Optional, defaults recommended
SLEEP=2000 # Delay (ms) between requests 
LONG_SLEEP=30000 # Long delay (ms) every 500 requests

Usage

All operations are supported - see examples directory

from rdapi import RD

RD = RD()

print(RD.system.time().content)
print(RD.user.get().json())
print(RD.torrents.get(limit=10, page=1).json())

import os
filepath = '/path/to/bbb.torrent'
print(RD.torrents.add_file(filepath=filepath).json())

# etc...

About

Real Debrid API Library for Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages