Read http(s), multicast, and udp streams like files
Project description
reader
read multicast, udp and http(s) like files
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.1.3.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for new_reader-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bed8714c75727b285c6a399012a1c4c40fbb3c02b5cde32c264b8cc92afe810 |
|
MD5 | bca3578edd4f2a9607849e07404f9b7e |
|
BLAKE2b-256 | 9faf52c42057fc3366a3de22f9bd70ce02aa298882b8a1efd56913a8d8ef56a6 |