Skip to main content

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

Project details


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)

Uploaded Source

Built Distribution

m3u_serializer-0.3.3-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

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

Hashes for m3u_serializer-0.3.3.tar.gz
Algorithm Hash digest
SHA256 3b2f6e879c4d8c5f37357180f7e3b6aa3cbcc6969ed6cf25acec6ab5d48badde
MD5 3752fa5ac8c649077de4aab560c2ee72
BLAKE2b-256 da7359ca47573231aa6f7384ce91528056269617645200eeb8a4fa983a79190d

See more details on using hashes here.

File details

Details for the file m3u_serializer-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for m3u_serializer-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 62b56f39ad74219a676e1fd013fac312bb00f71c4407f366ef3ffea55e8419f4
MD5 487a57d685949473f6b9112c6b78fb0a
BLAKE2b-256 4aa42a2509c545747504ca5742c95337c96de1a177853f83617a241ecb66c8ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page