Skip to main content

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 ,

Metadata

Release files for pyp3 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyp3 1.0.0
File Size Uploaded
pyp3-1.0.0.tar.gz 20.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyp3 1.0.0
File Interpreter ABI Platform
pyp3-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.1 kB

Release files / pyp3-1.0.0.tar.gz

Download URL pyp3-1.0.0.tar.gz
Size 20.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8517c74d34827e811a921f35ea00b81cc800b676d9c147679e48d673173b81cc
BLAKE2b-256 checksum
How to use checksums
b0c5edb9ac1830d65d70cc339abfcdb33aee3ad7527b54240bd2121eff254002
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pyp3-1.0.0-py3-none-any.whl

Download URL pyp3-1.0.0-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ede6529538b43fd6ab04dac2aefe7c07d56e4758fa863666b78dabcf5720d22
BLAKE2b-256 checksum
How to use checksums
ed3175576c9d0ed6693cc306c079ed54ca3bc2c8d752c5fcc667a5d2527fc6aa
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.0 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