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.8.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.8-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xstreamlib-0.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 7d53a36a2508b578c7350c1e677925b5c21111d46371551cabb9fa7486838747
MD5 5cbb2e0872aaf97af5d7964b15227262
BLAKE2b-256 e68f224c2a911bd96a99b2c2291f71d527e7fce3a8cd3fb4995d4dce59fd83fc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xstreamlib-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 99b20cb4b39ca1084913ba6742a7eaa5b2fe9d719a9e4d4094299a857cd5d64b
MD5 040177b078b11f9c4e1de4e9b31ebe82
BLAKE2b-256 631bb40c437bbd30ac49ed27874354fff4260c8311334c0bf43c748c9e66125e

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