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.1.tar.gz
(16.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file m3u_serializer-0.2.1.tar.gz.
File metadata
- Download URL: m3u_serializer-0.2.1.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
542c8d92aae6aa73f84e3fa9b33079afea50d9d1dcf329ef5a797f646779a376
|
|
| MD5 |
686532381d37e1bff786f49a1d303b2a
|
|
| BLAKE2b-256 |
626c7906a2d22ba14674a7f9f70a724a47e880f8b44c76f4efe66381a3617682
|
File details
Details for the file m3u_serializer-0.2.1-py3-none-any.whl.
File metadata
- Download URL: m3u_serializer-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.3 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 |
952c71e60e2172c030abb61baf18a4bfb60f50a99160dff59778889f94b65533
|
|
| MD5 |
1ba4cf88e314b86b664ff68745ba5ff5
|
|
| BLAKE2b-256 |
104f39a13f7a6cf31519d16eb9f91e06689057048e2e542cad9171acf44bcf52
|