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.3.0.tar.gz
(16.2 kB
view hashes)
Built Distribution
Close
Hashes for m3u_serializer-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 300f05ab04d09031ebcbc023ff70b3b494e9b886549ee1555920885240faba23 |
|
MD5 | 4e3c527f9ed5bcdb8d784a5a1be2bfdc |
|
BLAKE2b-256 | 31e6cb7cfbda8476d278e9ec1d1c0cad3500da60bddf56fb15a38f7d857168cc |