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.4.0.tar.gz
(19.5 kB
view details)
Built Distribution
m3u8-0.4.0-py3-none-any.whl
(18.3 kB
view details)
File details
Details for the file m3u8-0.4.0.tar.gz
.
File metadata
- Download URL: m3u8-0.4.0.tar.gz
- Upload date:
- Size: 19.5 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.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9afe7cff984888dd3fcc61b1a65c41aeb1edaf655732a3ad47560f3b314b5412 |
|
MD5 | 20707c7d7e2499fd11a90771fdfb9a64 |
|
BLAKE2b-256 | 803545390ef64dd07473a330e812aedd5cc4d6b6d5dcc775897ca2b1b19eb7e9 |
File details
Details for the file m3u8-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: m3u8-0.4.0-py3-none-any.whl
- Upload date:
- Size: 18.3 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.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90879abe9debba395c136eabc2d37297ddfd298b8be61c817dd6494cb8e7b9b7 |
|
MD5 | d9097d0897c91cf02e00cbd1d8c68aa6 |
|
BLAKE2b-256 | 50a05f77567c6a37329e85ddd9ce34198fa7bf9b6e283e6bd4ca511b544103f4 |