seedrcc
A comprehensive Python API wrapper for seedr.cc.
seedrcc provides a clean Python interface for the Seedr API, with support for both synchronous and asynchronous operations.
Table of Contents
✨ Features
- Complete API Coverage: All major Seedr API endpoints are supported.
- Works for All Users: Fully functional for both free and premium Seedr accounts.
- Sync & Async: Includes
seedrcc.Seedrfor synchronous operations andseedrcc.AsyncSeedrfor asynchronous ones. - Robust Authentication: Handles all authentication flows, including automatic token refreshes.
- Fully Typed: Provides type hints for all methods and models to improve code quality and clarity.
- Custom Exceptions: Provides specific exceptions for API, network, and authentication errors.
- Dataclass Models: API responses are parsed into clean, easy-to-use dataclasses.
📦 Installation
Install from PyPI:
pip install seedrcc
Or, install the latest version directly from GitHub:
pip install git+https://github.com/hemantapkh/seedrcc.git
🚀 Usage
Synchronous Example (with Device Authentication)
from seedrcc import Seedr
# 1. Get the device and user codes from the API.
codes = Seedr.get_device_code()
# 2. Open the verification URL (https://seedr.cc/devices) and enter the user code.
print(f"Please go to {codes.verification_url} and enter the code: {codes.user_code}")
input("Press Enter after authorizing the device.")
# 3. Create the client using the device_code.
with Seedr.from_device_code(codes.device_code) as client:
settings = client.get_settings()
print(f"Success! Hello, {settings.account.username}")
Asynchronous Example (with Password Authentication)
import asyncio
from seedrcc import AsyncSeedr
async def main():
# Authenticate using your username and password.
async with AsyncSeedr.from_password("your_email@example.com", "your_password") as client:
# Get your account settings.
settings = await client.get_settings()
print(f"Hello, {settings.account.username}!")
if __name__ == "__main__":
asyncio.run(main())
🗺️ How I Found the Endpoints
While Seedr.cc offers a premium API, it is not available to free users. This library was built by studying the network requests from the official Kodi and Chrome extensions.
Further analysis of the main Seedr website's network traffic revealed a very similar API pattern, which made it possible to implement the full feature set. Because the library uses the same API as the official tools, it works reliably for all users.
📚 Documentation
For a complete guide to every available method, data model, and advanced features like saving sessions, please see the Full Documentation.
🙌 Contributing
Contributions are welcome! If you'd like to help, please feel free to fork the repository, create a feature branch, and open a pull request.
📄 License
This project is distributed under the MIT License. See LICENSE for more information.
Author/Maintainer: Hemanta Pokharel (GitHub)
Metadata
Release files for seedrcc 2.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seedrcc-2.1.2.tar.gz | 113.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seedrcc-2.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 137.6 kB
Release files / seedrcc-2.1.2.tar.gz
| Download URL | seedrcc-2.1.2.tar.gz |
|---|---|
| Size | 113.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b53ca9f2b4633c6ab9936000bb32648b828fbd62af7ea0f223521afa87b2868
|
|
BLAKE2b-256 checksum How to use checksums |
50a82e1dd86daadb8cdc063960e32571a222eba8e5b10b35d59cde2bf17d42b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|
Release files / seedrcc-2.1.2-py3-none-any.whl
| Download URL | seedrcc-2.1.2-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64b8c81c673c5d901151121a5fed1f928a5c89ba6ad84c01e7216872a7c46895
|
|
BLAKE2b-256 checksum How to use checksums |
05357bac775c7894fcc34c4c8a2bc8eae35a1c64e4bfc34e5b12ebee340d639d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.25
|