Block Pruner
How would you go about deleting blocks of [start;end] if the block contains 615 in example.txt ?
example.txt
a
2
start
a
b
615 b
d
end
f
a
g
start
610
h
i
end
b
3
start
e
e
615
s
s
end
a
$ block_pruner --start start --end end --needle 615 example.txt
a
2
f
a
g
start
610
h
i
end
b
3
a
Usage
block_pruner --start start --end end --needle 615 example.txt > out.txt
Development
For help getting started developing check DEVELOPMENT.md
Metadata
Release files for block-pruner 0.0.4
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 |
|---|---|---|---|---|
| block_pruner-0.0.4.tar.gz | 3.8 kB | Without provenance | Details for block_pruner-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| block_pruner-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for block_pruner-0.0.4-py3-none-any.whl |
Total release size: 7.9 kB
Release files / block_pruner-0.0.4.tar.gz
| Download URL | block_pruner-0.0.4.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c836fdcc0f76d70339ff0be926ef898163a1ad91249ea3aba1077d78cc81f0ed
|
|
BLAKE2b-256 checksum How to use checksums |
9672775c0d59b7a338a7088087a12cabfb08a74bc84a05aa144723aebeecc16f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / block_pruner-0.0.4-py3-none-any.whl
| Download URL | block_pruner-0.0.4-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bf4ebf52eb26de60c9d12859669b4324a6a71959cb4a9a233e7d12dd26251df
|
|
BLAKE2b-256 checksum How to use checksums |
911e04e4f6522fc515bd53f46882460f02305c5b26e80e001c9345b9247ec26a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Security for block-pruner 0.0.4
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.