m3u8
Python m3u8 parser
Decision gist · record as of 2026-08-14
Yes, if you need to work with m3u8 playlists. The package is stable, permissively licensed, has low install friction, and covers a comprehensive set of HLS tags. Maintenance is dormant but not abandoned; the last release was 2024-08-07 and the repository shows recent activity. No known vulnerabilities.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction; depends only on backports-datetime-fromisoformat.
- Maintenance is dormant (737 days since last release), though the repository remains active with a recent commit on 2025-01-31 and 2276 stars.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
last release 2024-08-07 (737 days) · last repo commit 2025-01-31 · 2,276 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,580,268 downloads/mo, #3,741 on PyPI
Alternatives
Verify before relying
import m3u8
# Load from URL or file
playlist = m3u8.load('http://videoserver.com/playlist.m3u8')
print(playlist.segments)
print(playlist.target_duration)
# Or load from string
playlist = m3u8.loads('#EXTM3U\n#EXT-X-VERSION:3\n#EXTINF:10.0,\nsegment.ts')
# Dump back to file
playlist.dump('output.m3u8')- Whether the package handles all modern HLS extensions beyond RFC 8216 in practice, or if some listed tags have incomplete implementation
- Performance characteristics when parsing large or deeply nested playlists
What it is and what it does
m3u8 is a Python parser for m3u8 playlist files, the manifest format used by HTTP Live Streaming (HLS). It reads m3u8 content from URLs, file paths, or strings and exposes the parsed structure as Python objects—segments, duration, media sequences, encryption keys, and dozens of other HLS tags. You can also serialize playlists back to m3u8 text format, making it useful for reading, modifying, and regenerating HLS manifests.
The package supports a large set of m3u8 tags defined in RFC 8216 and related HLS specifications, including basic playback metadata (#EXT-X-TARGETDURATION, #EXTINF), encryption (#EXT-X-KEY), adaptive streaming (#EXT-X-STREAM-INF), and newer extensions like partial segments (#EXT-X-PART) and content steering. Its only runtime dependency is backports-datetime-fromisoformat, and it requires Python 3.7 or later.
Use it for
- Parse HLS manifests from a video streaming server to extract segment URLs and playback metadata for custom player logic
- Modify an existing m3u8 playlist (e.g., update encryption keys or segment paths) and write it back to a file
- Extract timing and duration information from live or on-demand HLS streams for analytics or scheduling
- Build tooling to validate or audit m3u8 playlists for compliance with HLS specifications
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to work with m3u8 playlists.
The package is stable, permissively licensed, has low install friction, and covers a comprehensive set of HLS tags. Maintenance is dormant but not abandoned; the last release was 2024-08-07 and the repository shows recent activity. No known vulnerabilities.
Install
m3u8 on PyPI
Before you install
Low install friction; depends only on backports-datetime-fromisoformat. Maintenance is dormant (737 days since last release), though the repository remains active with a recent commit on 2025-01-31 and 2276 stars.
License in practice
MIT license is permissive; you can use this package freely in commercial and private projects with minimal restrictions.
Quickstart
import m3u8
# Load from URL or file
playlist = m3u8.load('http://videoserver.com/playlist.m3u8')
print(playlist.segments)
print(playlist.target_duration)
# Or load from string
playlist = m3u8.loads('#EXTM3U\n#EXT-X-VERSION:3\n#EXTINF:10.0,\nsegment.ts')
# Dump back to file
playlist.dump('output.m3u8')
Verify before relying
- Whether the package handles all modern HLS extensions beyond RFC 8216 in practice, or if some listed tags have incomplete implementation
- Performance characteristics when parsing large or deeply nested playlists
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.7 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagebackports-datetime-fromisoformat |
| Maintenance | Dormant 737 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,580,268 / month, #3,741 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: m3u8-6.0.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “m3u8 playlist parser”
- m3u8Parses and generates m3u8 playlist files (HLS manifests) according to…
- spotdlspotDL downloads songs from Spotify playlists on YouTube, embedding…
- youtube-search-pythonSearch YouTube for videos, channels, and playlists without the…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also webvtt-py · ical · streamlink · sexpdata · mwxml · spotdl · lazr.uri · git-url-parse · mediatype · ytmusicapi