Skip to main content

Pipe remedy

Project description

Prem

Pipe remedy: CLI-like utils in Python.

# before
import pathlib, re
"".join(
    line.replace("h", "H")
    for filename in pathlib.Path().glob("*.md")
    for line in filename.read_text().splitlines(keepends=True)
    if re.search("hello", line)
)

# after
from prem import ls, xargs, cat, grep, sed
str(ls("*.md") | xargs(cat) | grep("hello") | sed("s/h/H/g"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prem-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prem-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file prem-0.1.0.tar.gz.

File metadata

  • Download URL: prem-0.1.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for prem-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cb7891a7bfb47c16b8d9470667df31eccaeb551125716654a119c40e6801b9c8
MD5 43698696c5717e6de4daf2d866a812ce
BLAKE2b-256 f1abf39f6fd9b461babdcbd21e70c032b18f1ee27487a304273bf76e67204dbc

See more details on using hashes here.

Provenance

The following attestation bundles were made for prem-0.1.0.tar.gz:

Publisher: test.yml on casperdcl/prem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file prem-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: prem-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for prem-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9cb09c5ce86f39749a7dfb7e8d9c05873b80fce68314d1b80a828add0d6537e1
MD5 ed7e01200b6982e3f8b4aa5b22b2ed6a
BLAKE2b-256 b84f6fd3280aa01a5cb1e90302af65c84ec7a2295911e7f994e36336508dcf81

See more details on using hashes here.

Provenance

The following attestation bundles were made for prem-0.1.0-py3-none-any.whl:

Publisher: test.yml on casperdcl/prem

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page