Skip to main content

Read http(s), multicast, and udp streams like files

Project description

reader

read multicast, udp and http(s) like files

new_reader returns an open file handle.

    stdin:              cat video.ts | gumd
    files:              "/home/you/video.ts"
    http(s) urls:       "https://example.com/vid.ts"
    udp urls:           "udp://1.2.3.4:5555"
    multicast urls:     "udp://@227.1.3.10:4310"

Use like:

    from new_reader import reader

    with reader("udp://@227.1.3.10:4310") as data:
        data.read(8192)
        
    with reader("/home/you/video.ts") as data:
        fu = data.read()
        
    udp_data =reader("udp://1.2.3.4:5555")
    chunks = [udp_data.read(188) for i in range(0,1024)]
    udp_data.close()

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

new_reader-0.0.5.tar.gz (1.5 kB view hashes)

Uploaded Source

Built Distribution

new_reader-0.0.5-py3-none-any.whl (1.5 kB view hashes)

Uploaded Python 3

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