Metadata-Version: 2.4
Name: prem
Version: 0.1.0
Summary: Pipe remedy
Maintainer-email: Casper da Costa-Luis <casper.dcl@physics.org>
License: MPL-2.0
Project-URL: repository, https://github.com/casperdcl/prem
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: argopt
Requires-Dist: shtab

# Prem

Pipe remedy: CLI-like utils in Python.

```py
# 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"))
```
