Metadata-Version: 2.1
Name: new-reader
Version: 0.1.3
Summary: Read http(s), multicast, and udp streams like files
Home-page: https://github.com/futzu/new_reader
Author: Adrian
Author-email: spam@iodisco.com
Platform: all
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: CPython
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# `reader`

    read multicast, udp and http(s) like files

```lua
    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"
  ```
  
  ![image](https://user-images.githubusercontent.com/52701496/186197793-5c58fd2b-db06-4c11-8b94-d5850162be44.png)

  
  
  `Use like`:
```smalltalk
    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()
```
