Skip to main content

Python CLI tools

pyclitool is a command line utility that allow you to map/filter/reduce your input with a Python one liner, line by line.

Installing:

sudo pip install pyclitool

Usage:

Here are some powerful examples of what you can do with the py command line utility.

Calculate the length of the file names in your current directory:

`bash ls | py "len(x)" `

Sum a list of numbers using a reduce function:

`bash echo -n "1\n2\n3\n4\n5\n" | py -r "int(x)+int(y)" `

Filter only lines from a CSV which the sixth column is greater than 3, skipping the header row of the CSV

`bash cat wine_data.csv | py -s -f "float(x.split(',')[5]) > 3.0" `

Author:

Ron Reiter <ron.reiter@gmail.com>

Metadata

Release files for pyclitool 1.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 pyclitool 1.0
File Size Uploaded Provenance
pyclitool-1.0.macosx-10.13-intel.tar.gz 1.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyclitool 1.0
File Interpreter ABI Platform
pyclitool-1.0-py2.7.egg Legacy Egg format - - Details

Total release size: 3.4 kB

Release files / pyclitool-1.0.macosx-10.13-intel.tar.gz

Download URL pyclitool-1.0.macosx-10.13-intel.tar.gz
Size 1.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8b21082fbdb02d682392f2864f311f1bcd6041feaeab37949154875781f7643e
BLAKE2b-256 checksum
How to use checksums
835795c7e735ba1994885335768056f16123f20655636bca74a7abe3a8fec871
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10

Release files / pyclitool-1.0-py2.7.egg

Download URL pyclitool-1.0-py2.7.egg
Size 1.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
4bfbed4c704a2e4b659442ae2f4c83429b0e2068fd45d410e39214bf15143beb
BLAKE2b-256 checksum
How to use checksums
54825b74dd43b0ea8110e7321ad127a8277fa739e9748e8051c1108fad73d630
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.1.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/2.7.10

Security for pyclitool 1.0

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.

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files No provenance

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