Skip to main content

Librería para facilitar el streaming de archivos de XMedia y su api

Project description

XStreamLib

Una biblioteca Python moderna y fácil de usar para interactuar con la API de Udyat. Diseñada para ser flexible, robusta y permitir configuración personalizada de la URL de la API.

✨ Características

  • 🚀 Fácil de usar: API intuitiva y bien documentada
  • 🔒 Manejo robusto de errores: Excepciones personalizadas con información detallada
  • 📁 Subida de archivos: Soporte nativo para multimedia
  • 📦 Context managers: Gestión automática de recursos
  • 🎯 Type hints: Completamente tipado para mejor experiencia de desarrollo
  • 🔧 Endpoints personalizados: Flexibilidad total para cualquier API

🚀 Instalación

Instalación básica

pip install xstreamlib

📖 Ejemplo básico

import asyncio
from xstreamlib.stream import Stream

# URL base de la API
API_URL = "https://api.ejemplo.com"

async def main():
    # URL del contenido de ejemplo
    url = "https://t.me/c/1901234342559/1"
    
    # Obtener URL de streaming
    stream_url = await Stream.get_stream_url(url, api_url=API_URL)
    if stream_url:
        print(f"URL de streaming: {stream_url}")
    
    # Obtener subtítulos
    subtitles = await Stream.get_captions(url, api_url=API_URL)
    if subtitles:
        print(f"Subtítulos disponibles: {subtitles}")
    
    # Obtener miniatura
    thumbnail = await Stream.get_thumbnail(url, api_url=API_URL)
    if thumbnail:
        print(f"URL de miniatura: {thumbnail}")

if __name__ == "__main__":
    # Ejecutar el ejemplo
    asyncio.run(main())

Tipos de errores comunes

  • 400 Bad Request: Parámetros inválidos
  • 500 Internal Server Error: Error del servidor

🆘 Soporte

Próximas versiones

  • v0.0.2: Mejoras

Características futuras

  • Métricas y monitoréo para limitar las peticiones

🏆 Reconocimientos

  • Agradecimientos al creador de la api mi grandioso padre
  • Facilidad para obtener enlaces directos de telegram.
  • Construido con amor para la comunidad de desarrolladores Python.

¿Te gusta xstreamlib? ¡Dale una ⭐ en GitHub y compártelo con otros desarrolladores!

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

xstreamlib-0.0.9.tar.gz (42.6 kB view details)

Uploaded Source

Built Distribution

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

xstreamlib-0.0.9-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file xstreamlib-0.0.9.tar.gz.

File metadata

  • Download URL: xstreamlib-0.0.9.tar.gz
  • Upload date:
  • Size: 42.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for xstreamlib-0.0.9.tar.gz
Algorithm Hash digest
SHA256 2fc39e86f2ecec84ec5f8816443b4427bc56222ecb447d64b94aa795f557626a
MD5 8ab15e19bb2dd11f1c873da683a71cdc
BLAKE2b-256 24c3a129de54b6d89785cd92b9686b40a13d004df578c0647334117a9f825f20

See more details on using hashes here.

File details

Details for the file xstreamlib-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: xstreamlib-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 29.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.4

File hashes

Hashes for xstreamlib-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 199aff297076f402ab4ad9d25a809f1112e1f7ba54511d23794e4722e87daf88
MD5 3700c54b079d580d22ec1fe1d185f01f
BLAKE2b-256 739ed11e5c1d29e32086d68e6f4920d1c57fa00ec89e0252cc432994947c3768

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