Skip to main content

stream-delay

PyPI Changelog Tests License

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 line
  • stream-delay myfile.txt - same as above, this time using the filename
  • stream-delay myfile.txt myfile2.txt - streams from the first file, then the second file
  • stream-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

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)

Source distribution for stream-delay 0.1
File Size Uploaded
stream-delay-0.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stream-delay 0.1
File Interpreter ABI Platform
stream_delay-0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page