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-1.0.0.tar.gz (42.7 kB view details)

Uploaded Source

Built Distribution

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

xstreamlib-1.0.0-py3-none-any.whl (29.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xstreamlib-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c81dea52a1fb9edc8251cb4003e5cda4e058bda8589f38d88f225b6d4aca02f2
MD5 24ef94e6379ba058747134d76e7c2191
BLAKE2b-256 f0a071b320e16701ace3c9234de5c07c51af433611d1c6ef70be1605355f8438

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xstreamlib-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f4ee52fa975af622893ae534c3f619c60777b756f2e254e62fc954382d9afe8e
MD5 eb0a6070b607ba362a7e1af4a41b8e8a
BLAKE2b-256 42baa866e8dce6be20fa27fa6273ef411a235c1f59c83c8764d7614e78df824d

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