shrincols
CLI for making a text to fit in a max number of columns. It is possible to especify the max number of columns as well as to juntify it.
It is possible to write output to a file and to pipe a text for the script’s standard input.
Preparing for Development
Ensure pip and pipenv are installed.
Clone repository: https://github.com/thiagolcmelo/desafio-idwall
Fetch development dependencies: make install
Usage
The input might be a filename:
$ shrincols filename.txt -c 80
or a string:
$ shrincols "some text goes here ..." -c 80
The option -j forces the text to be justified:
$ shrincols filename.txt -c 80 -j
Altough the result will always be printed on the standard output, the option -o might be used for writing the result to a file.
$ shrincols filename.txt -c 40 -o output.txt
It is also possible to pipe standard output into the script’s standard input:
$ cat filename.txt | shrincols -c 40
Running Tests
Run tests locally using make if virtualenv is active:
$ make
If virtualenv isn’t active then use
$ pipenv run make
Metadata
Release files for shrincols 0.1.2
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 |
|---|---|---|---|---|
| shrincols-0.1.2.tar.gz | 3.9 kB | Without provenance | Details for shrincols-0.1.2.tar.gz |
Release files / shrincols-0.1.2.tar.gz
| Download URL | shrincols-0.1.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
788ec63f3444a4788a47b0ab6010bda3399f2d97e86495c3bc8b26b3c98499d3
|
|
BLAKE2b-256 checksum How to use checksums |
badc74218672ae0714ee0621812b46686196e796cd9d05d8eb8fcff1381964dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for shrincols 0.1.2
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.