Python m3u8 parser
Project description
m3u8
Python m3u8 parser.
Documentation
The basic usage is to create a playlist object from uri, file path or directly from a string:
import m3u8
m3u8_obj = m3u8.load('http://videoserver.com/playlist.m3u8') # this could also be an absolute filename
print m3u8_obj.segments
print m3u8_obj.target_duration
# if you already have the content as string, use
m3u8_obj = m3u8.loads('#EXTM3U8 ... etc ... ')
Running Tests
$ ./runtests
Contributing
All contribution is welcome, but we will merge a pull request if, and only if, it
has tests
follows the code conventions
If you plan to implement a new feature or something that will take more than a few minutes, please open an issue to make sure we don’t work on the same thing.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
m3u8-0.5.1.tar.gz
(20.0 kB
view details)
Built Distribution
m3u8-0.5.1-py3-none-any.whl
(18.6 kB
view details)
File details
Details for the file m3u8-0.5.1.tar.gz
.
File metadata
- Download URL: m3u8-0.5.1.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73681ae62604e077223c101178f6eba6bc2952070505bdf9f2e80cc037fe5c8b |
|
MD5 | 041dee545f8d7b264f87ed5bee8ade2f |
|
BLAKE2b-256 | 82cc76ba71e611f721e7fb8bb396ccaf8f7003d91ed0018e0fd75d15fb4acf14 |
File details
Details for the file m3u8-0.5.1-py3-none-any.whl
.
File metadata
- Download URL: m3u8-0.5.1-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 015360374b7edf59d3df7a4d3353af4842427f1f3d2bd7aed0797ec929699d6f |
|
MD5 | daedaae683d340f08f9d1f4376928a58 |
|
BLAKE2b-256 | 735521533b2e43e758ff32df2694d12a353e5daa49175b148418fc0cbbea955e |