Skip to main content

pystorytv

PyPI version Documentation

A complete Python API wrapper for StoryTV.

Browse, search, stream, and bulk-download Hindi/regional dramas effortlessly from within your own Python programs.

Features

  • Python API — Object-oriented wrapper around StoryTV endpoints.
  • Bulk Downloader — Thread-pool based parallel downloading of m3u8 streams via yt-dlp and ffmpeg.
  • OTPLess Login — Phone OTP authentication, session handled automatically.

Requirements

  • Python 3.10+
  • ffmpeg (required for downloading/muxing HLS streams)

Installation

Install from PyPI:

pip install pystorytv

Quick Start (Python API)

from pystorytv import AuthManager, StoryTVClient
from pystorytv.downloader import Downloader

# 1. Authenticate
auth = AuthManager()
if not auth.is_logged_in():
    auth.request_otp("9876543210", "+91")
    otp = input("Enter OTP: ")
    auth.verify_otp("9876543210", "+91", otp)

# 2. Fetch Data
client = StoryTVClient(session=auth.session)
show = client.get_show_details(3413)
episodes = client.get_all_episodes(3413)

# 3. Download
downloader = Downloader(max_workers=5)
downloader.download_bulk(episodes, output_dir="./downloads", show_title=show.title)

Documentation

Full documentation is available at https://pystorytv.vrma.dev.

Metadata

Release files for pystorytv 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pystorytv 0.1.1
File Size Uploaded
pystorytv-0.1.1.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pystorytv 0.1.1
File Interpreter ABI Platform
pystorytv-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 28.6 kB

Release files / pystorytv-0.1.1.tar.gz

Download URL pystorytv-0.1.1.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6ce7b682d58e6211cecf2d0cd2ee69b3349dfb46ab01621a06457ba90d4d66b9
BLAKE2b-256 checksum
How to use checksums
a795da4a721cbccac6ad4327c7684b25d325064005c1e93299bdf915488e9065
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / pystorytv-0.1.1-py3-none-any.whl

Download URL pystorytv-0.1.1-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59183f82f0dc2c41b5f863d2fb7e87f2d91bfdb0e41126c901f5f45261ccb932
BLAKE2b-256 checksum
How to use checksums
bf11c4a578814fa0ccdc2f8997caa078fb0b1398c0f0cda930346ddf47503461
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page