M3U serializer/deserializer
Project description
Project description
M3U serializer / deserializer a lightweight to write and read M3U medie files.
Installing
Install and update using pip:
$ pip install -U m3u_serializer
A Simple Example
#!/usr/bin/env python
from m3u_serializer import M3UDeserializer
from m3u_serializer import M3USerializer
groups = [ 'Channels UK', 'Channels NL' ]
m3uReader = M3UDeserializer( 'input.m3u' )
m3uwriter = M3USerializer( 'output.m3u' )
for item in m3uReader:
print( item )
# do some filtering
if item.Group in groups:
m3uwriter.write( item )
# all done
See form aore examples the tests/tests.py
Links
- Documentation: https://github.com/pe2mbs/m3u_serializer/wiki
- PyPI Releases: https://pypi.org/project/m3u_serializer/
- Source Code: https://github.com/pe2mbs/m3u_serializer/
- Issue Tracker: https://github.com/pe2mbs/m3u_serializer/issues
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
m3u_serializer-0.1.4.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for m3u_serializer-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 336b6bf2d7c44709c6a58314a432bfb35a2cf373566d504aff6860e49a1cd632 |
|
MD5 | 515f6f01cb628abce5c74982bf6d26c4 |
|
BLAKE2b-256 | aed1a651cc4981eda0e101d48835d668d59c060949bc5fde69d27aabd54108ce |