This release is a pre-release and may not be stable for production use.
Blockpype
Breaks apart input stream into blocks and pipes each block into newly spawned processes
Installing
pip install git+https://github.com/kfzteile24/blockpype.git
Testing
Clone the repository and run visual tests that display each started PID and their output:
test/by-byte.sh- should break apart in the middle of the 2-byte charactertest/by-char.sh- should break apart in the middle of some numberstest/by-line.sh- should break apart nicely line by line
Usage
cat content.txt | blockpype -l 10 other-program --arg-for-program --another-arg "argument value"
It will cut content.txt into blocks of 10 lines, and for each block, a process will be started using the command:
other-program --arg-for-program --another-arg "argument value"
and the contents of the block will be served to stdin
What's it for?
Whenever you want to break apart a large stream when the other-program consumer stores it into memory until EOF, and you don't have enough memory for it.
Similar to split --filter "other-program --arg-for-program --another-arg \"argument value\"" except less clunky, other-program gets launched from current pwd with the current user, and with the current environment variables.
Metadata
Release files for blockpype 1.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| blockpype-1.0.0a1-py3.7.egg | Legacy Egg format | - | - | Details for blockpype-1.0.0a1-py3.7.egg |
Release files / blockpype-1.0.0a1-py3.7.egg
| Download URL | blockpype-1.0.0a1-py3.7.egg |
|---|---|
| Size | 4.7 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
88cf958d60cf3db6aba9d58f7f2679d901fcc3b71bb139890ebf5fbd489db842
|
|
BLAKE2b-256 checksum How to use checksums |
57ccc79a9682dc1bf29f68613d5300bf5778ae60fe15e140949a55d8052d044e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3
|
Security for blockpype 1.0.0a1
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.