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.2.0.tar.gz
(16.1 kB
view hashes)
Built Distribution
Close
Hashes for m3u_serializer-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b05924ecc8fd7e5279a9031ba6e9f1c54d488ad8c7b291f2f8cdb6311e81f50 |
|
MD5 | e750dc7e92e713cb8c3e950be9e473ad |
|
BLAKE2b-256 | 5bca2c8b059869e9f6bb93394c3b09b52783594cdc15e967bac1b4d16b00e5ae |