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.3.tar.gz
(16.3 kB
view details)
Built Distribution
File details
Details for the file m3u_serializer-0.3.3.tar.gz
.
File metadata
- Download URL: m3u_serializer-0.3.3.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b2f6e879c4d8c5f37357180f7e3b6aa3cbcc6969ed6cf25acec6ab5d48badde |
|
MD5 | 3752fa5ac8c649077de4aab560c2ee72 |
|
BLAKE2b-256 | da7359ca47573231aa6f7384ce91528056269617645200eeb8a4fa983a79190d |
File details
Details for the file m3u_serializer-0.3.3-py3-none-any.whl
.
File metadata
- Download URL: m3u_serializer-0.3.3-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62b56f39ad74219a676e1fd013fac312bb00f71c4407f366ef3ffea55e8419f4 |
|
MD5 | 487a57d685949473f6b9112c6b78fb0a |
|
BLAKE2b-256 | 4aa42a2509c545747504ca5742c95337c96de1a177853f83617a241ecb66c8ee |