A Python wrapper for the Stremio API
Project description
Stremio-API
A lightweight, asynchronous Python wrapper for the Stremio API.
Features
- ✨ Async functionality using
httpx - 👤 User authentication and profile management
- 📚 Library and Addon collection access
- 📺 "Continue Watching" synchronization
- 🎬 Metadata fetching (via Cinemeta)
Installation
pip install stremio-api
Quick Start
You can log in directly using your Stremio credentials:
import asyncio
from stremio_api import StremioAPIClient
async def main():
# Initialize without an auth key (or with None)
async with StremioAPIClient(auth_key=None) as client:
# Login with email and password
auth_key = await client.login("your.email@example.com", "your_password")
print(f"Logged in! New Auth Key: {auth_key}")
# Get user info
user = await client.get_user()
print(f"User profile: {user.email}")
# Fetch Continue Watching items
watching = await client.get_continue_watching(limit=5)
for item in watching:
print(f"Watching: {item.name}")
if __name__ == "__main__":
asyncio.run(main())
Usage with Existing Auth Key
If you already have an authKey (e.g. from local storage), you can skip the login:
client = StremioAPIClient(auth_key="YOUR_EXISTING_KEY")
user = await client.get_user()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stremio_api-0.1.0.tar.gz
(4.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stremio_api-0.1.0.tar.gz.
File metadata
- Download URL: stremio_api-0.1.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f57f113b7e7c2734d0b3fb7d4f7df758b29f1a63828d8714ece800a3cff25b5e
|
|
| MD5 |
ec72613d071b4d06fc12a9e9a2e6658f
|
|
| BLAKE2b-256 |
ec22de234c97a3d59206cabeab0602b1f2edb48fcb32243b77fdadb52ffeeea8
|
File details
Details for the file stremio_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stremio_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a5f97704c984b1588c341e52b5d90b8e2eddc1e4e16c588feb937bbe6963ae4
|
|
| MD5 |
ea8d42f744332a0cbc3b261e0deeb136
|
|
| BLAKE2b-256 |
2622ca458649f9af8a6f5b0720b1fa5f4e1b0487b4ed4465085b247c50bf3c69
|