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.5.tar.gz
(9.6 kB
view hashes)
Built Distribution
Close
Hashes for m3u_serializer-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | facda438358910b22cea70ec0528d4c850b875a04f355cfcf1f98e2f3c8fbe2f |
|
MD5 | a3320fd577b074665fd2eb2c733af863 |
|
BLAKE2b-256 | 7f412f0173192265f833930d96afb1ce3b90e521e5384342bce450dc897e5411 |