Skip to main content

A comprehensive Python API wrapper for seedr.cc

Project description

seedrcc logo

seedrcc

A comprehensive Python API wrapper for seedr.cc.

Stars Issues


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.Seedr for synchronous operations and seedrcc.AsyncSeedr for 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)

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

seedrcc-2.1.0.tar.gz (113.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seedrcc-2.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

File details

Details for the file seedrcc-2.1.0.tar.gz.

File metadata

  • Download URL: seedrcc-2.1.0.tar.gz
  • Upload date:
  • Size: 113.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for seedrcc-2.1.0.tar.gz
Algorithm Hash digest
SHA256 1453457a96db1a2786c23d5552f4e0ea6b572bf6f2e79e818653183f9720b754
MD5 adc2535ba8c7eb6cee38523340433f66
BLAKE2b-256 f046836edf1029ae8d069b0e89ef5df5c72aea20cf7913500fb35d41f3dc260a

See more details on using hashes here.

File details

Details for the file seedrcc-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: seedrcc-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 24.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for seedrcc-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f1335058420205944e5c2eda66754f99e89d8d0dc8e473aa0f085cda5b43a6c2
MD5 237a64f5cc6b6f33e7cda1dfcfb9b7d2
BLAKE2b-256 67cbdb7004a1c3410cb21d9d0d9323c54364d6a8058c4fbe1a40d7d6d2bc077a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page