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
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
new_reader-0.0.7.tar.gz
(2.4 kB
view hashes)
Built Distribution
Close
Hashes for new_reader-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e35701b1b9dab1357b302616b21b688da51a17cc065d26ef43d71bfdf8ec62cc |
|
MD5 | e6343ab54675ef9c15e1b8cdd76edc78 |
|
BLAKE2b-256 | 4f23e7a3800f661882a11d513e6ca2e8e35aca081873553fe9a20a6413827227 |