Pyp is a linux command line text manipulation tool similar to awk or sed, but which uses standard python string and list methods as well as custom functions evolved to generate fast results in an intense production environment.
Project description
pyp3
A minified pyp compatible with python3
Pyp is a linux command line text manipulation tool similar to awk or sed, but which uses standard python string and list methods as well as custom functions evolved to generate fast results in an intense production environment.
Installation
From PyPI
pip3 install pyp3
From GitHub
pip3 install git+https://github.com/donno2048/pyp3
Usage
Because pyp employs it's own internal piping syntax ("|") similar to unix pipes, complex operations can be proceduralized by feeding the output of one python command to the input of the next.
This greatly simplifies the generation and troubleshooting of multistep operations without the use of temporary variables or nested parentheses. The variable "p" represents each line as a string, while "pp" is entire input as python list
Use it directly
ls | pyp3 "p[0] | pp.sort()" #gives sorted list of first letters of every line
Use it as a python module
ls | python3 -m pyp3 "p.replace('.', ',')" #replaces . with ,
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyp3-1.0.0.tar.gz
.
File metadata
- Download URL: pyp3-1.0.0.tar.gz
- Upload date:
- Size: 20.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8517c74d34827e811a921f35ea00b81cc800b676d9c147679e48d673173b81cc |
|
MD5 | ddfbca5665f6bedc7c6f91c353709ccc |
|
BLAKE2b-256 | b0c5edb9ac1830d65d70cc339abfcdb33aee3ad7527b54240bd2121eff254002 |
File details
Details for the file pyp3-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pyp3-1.0.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ede6529538b43fd6ab04dac2aefe7c07d56e4758fa863666b78dabcf5720d22 |
|
MD5 | 1eb57d88d3f3f6402bd961b156fcbc20 |
|
BLAKE2b-256 | ed3175576c9d0ed6693cc306c079ed54ca3bc2c8d752c5fcc667a5d2527fc6aa |