Skip to main content

A modular Python library for IPTV portal interaction.

Project description

iptvpy

iptvpy is a modular Python library for IPTV portal interaction.


Features

  • Base IPTV class for IPTV portal
  • Easy to extend for other IPTV systems
  • Uses cloudscraper to bypass Cloudflare
  • Optional logging/export of responses

Requirements

  • Python 3.x
  • cloudscraper

Install dependencies manually

pip install cloudscraper --upgrade

Installation

pip install iptvpy

Usage

IPTV

Core class with:

  • gen_jsondata() — safely extracts JSON, optionally from .js key
  • gen_logs() — logs responses to self.r_list and to files if required
  • gen_input() — parses URL/host details and holds logic for client-side variables
  • gen_scraper() — initializes a Cloudflare-capable session
  • gen_request() — performs GET or POST requests

Subclasses like MacPortal, XtreamPortal can build on this to implement specific authentication flows and APIs.


Notes

  • Planned to add child class MacPortal (Stalker/Ministra like portals)
  • Planned to add child class XtreamPortal (Xtream-Codes like portals)

License

Apache License 2.0

This library is open-source and free to use under the Apache 2.0 License.


Contributing

Contributions, suggestions, and feature requests are welcome! Feel free to submit an issue or PR.


Author

Developed by भाग्य ज्योति (Bhagya Jyoti)


Happy iptv portal-ing!

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

iptvpy-1.0.1.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

iptvpy-1.0.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file iptvpy-1.0.1.tar.gz.

File metadata

  • Download URL: iptvpy-1.0.1.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for iptvpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2d796f147ff7df87dd816aebe9d6ba40859067765279e3864f5beaeb91dad45f
MD5 4f45a279a5ff18aacb55511ecbd4d31a
BLAKE2b-256 b8923341aa6ed0cd61d1deedcbdb1a8f3b59dde911bdfb992737e30accc1d657

See more details on using hashes here.

Provenance

The following attestation bundles were made for iptvpy-1.0.1.tar.gz:

Publisher: pypi.yml on BhagyaJyoti22006/iptvpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iptvpy-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: iptvpy-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for iptvpy-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7c590b2cafcac06f5cf8c3e4b5f67e2180b88dc492974b601232780330dc40d0
MD5 3d2a3abc06ba97fac22a2735fd10b3fc
BLAKE2b-256 e69a1c02e9455a4f09c8587b252540c15a606cb526244ec23d936a1e2997d286

See more details on using hashes here.

Provenance

The following attestation bundles were made for iptvpy-1.0.1-py3-none-any.whl:

Publisher: pypi.yml on BhagyaJyoti22006/iptvpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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