stream-delay
Stream a file or stdin one line at a time with a delay
Installation
Install this tool using pip:
$ pip install stream-delay
Usage
Feed content to this tool either by piping to standard input or using one or more filenames.
The tool will output the data from those inputs one line at a time with a 100ms delay between each line.
You can use -d 500 to change the delay to another value expressed in milliseconds.
Examples:
cat myfile.txt | stream-delay- will stream from that file with a 100ms delay between each linestream-delay myfile.txt- same as above, this time using the filenamestream-delay myfile.txt myfile2.txt- streams from the first file, then the second filestream-delay myfile.txt -d 1000- streams from that file with a one second delay between each line
Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
cd stream-delay
python -m venv venv
source venv/bin/activate
Or if you are using pipenv:
pipenv shell
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
pytest
Metadata
Release files for stream-delay 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| stream-delay-0.1.tar.gz | 6.3 kB | Without provenance | Details for stream-delay-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| stream_delay-0.1-py3-none-any.whl | Python 3 | none | any | Details for stream_delay-0.1-py3-none-any.whl |
Total release size: 13.1 kB
Release files / stream-delay-0.1.tar.gz
| Download URL | stream-delay-0.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1b3453d96c16e2dcb975d01f4ced618de3170e9c1d96745b36d09c5c9784583
|
|
BLAKE2b-256 checksum How to use checksums |
954ea92cce1dba6a72b65fea5b83ce1a817eef57c7cd9d4356d3fa321a9155d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Release files / stream_delay-0.1-py3-none-any.whl
| Download URL | stream_delay-0.1-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1f103a5390d9dd1eeb3b6928ba452f8b382aa1f805d71eaacb8fdd8bd20b1c5e
|
|
BLAKE2b-256 checksum How to use checksums |
564ee9e6215cbce6cf6088c16b7642862f0dc4b03976bc79c41cd7983ce62c20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9
|
Security for stream-delay 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.