Official async Python SDK and CLI for BrokenX YouTube API
Project description
🚀 BROKENXAPI
Official async Python SDK & CLI for BrokenX YouTube API Built by Broken X Network
BROKENXAPI developers ko YouTube search aur media processing (audio/video) ke liye ek fast, async aur secure API provide karta hai — jisme SDK + CLI dono available hain.
✨ Features
- ⚡ Async Python SDK (aiohttp based)
- 🖥️ Built-in CLI (
brokenx) - 🔑 Secure API-key authentication
- 🎵 Audio & 🎬 Video support
- ☁️ Telegram-based media delivery
- 🚀 Server-side caching & rate limits
- 🧱 Clean, production-ready packaging
📦 Installation
pip install BROKENXAPI
Verify installation:
brokenx -v
🔑 Authentication (One-time)
CLI ke through ek baar API key authenticate karni hoti hai:
brokenx auth BROKENXAPI-XXXX
🔐 How it works
- API key securely local machine par store hoti hai
- Uske baad har command automatically authenticated hoti hai
- Environment variables ki zarurat nahi
📟 Command Line Interface (CLI)
BROKENXAPI with powerful CLI :
🔢 Version
brokenx -v
🔍 Search YouTube
brokenx search "lofi beats"
Returns:
- title
- video_id
- duration
- thumbnail
- temporary stream URL
🎵 Download Audio
brokenx download VIDEO_ID
Default mode audio hota hai.
🎬 Download Video
brokenx download VIDEO_ID -v
-v flag use karke video download hota hai.
🐍 Python SDK Usage
Basic Example
import asyncio
from brokenxapi import BrokenXAPI
async def main():
async with BrokenXAPI(api_key="BROKENXAPI-XXXX") as api:
result = await api.search("Arijit Singh")
print(result)
asyncio.run(main())
Download Example
async with BrokenXAPI(api_key="BROKENXAPI-XXXX") as api:
audio = await api.download("VIDEO_ID", "audio")
video = await api.download("VIDEO_ID", "video")
🧠 How Authentication Works
- API key har request ke saath backend par verify hoti hai
- Rate limits server-side enforce hote hain
- Invalid / expired key par request reject ho jaati hai
📚 Documentation
📘 Full Docs: 👉 DOCS
⚠️ Important Notes
- Media files Telegram ke through deliver hote hain
- Stream URLs temporary hote hain
- Rate limits API key ke type par depend karte hain
- SDK async hai —
async/awaitrequired
🔒 Security & Licensing
- Core client logic intentionally compiled (
.pyc) - No sensitive keys repo me store nahi hoti
- License: MIT
🤝 Contributing
Currently BROKENXAPI core is maintained by Broken X Network. Issues, feature requests aur suggestions welcome hain:
🏁 Roadmap (High-level)
- ✅ SDK + CLI
- 🔜 Advanced CLI flags
- 🔜 Improved docs & examples
- 🔜 Multi-profile auth support
- 🔜 Production backend scaling
© License
MIT License © 2025–2026 MR BROKEN
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
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 brokenxapi-2.0.2.tar.gz.
File metadata
- Download URL: brokenxapi-2.0.2.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12aa5ccb36d54f1327dcfad58b11cd96b29567c208f4243dc1a996ebb8903283
|
|
| MD5 |
fadbab428db214792cea5713b239d052
|
|
| BLAKE2b-256 |
b66532e67ee57480827f0a8385cdc926ab9e348537887f1513c5ec55178ff43a
|
File details
Details for the file brokenxapi-2.0.2-py3-none-any.whl.
File metadata
- Download URL: brokenxapi-2.0.2-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46e4780b53ff5c0d620b6626e70d11817363fb1549304683a222d45f8da26880
|
|
| MD5 |
82239899934f82a3d2bc597e1891d7ae
|
|
| BLAKE2b-256 |
4cf4b4807ff603d1494f10feeda8e6c362725aea6efe107be797ba4bfd98e0f8
|