Skip to main content

Python Pipe Operator

Project description

# HellP: Python Hell Pipe Helper

`pip install HellP` then:

Instead of `f(x)` Write `x | p(f)`

Instead of `p(lambda x: x.attr[item])` Write `px.attr[item]`

Instead of

```python
from pathlib import Path

print(' '.join(list(map(str, filter((lambda x: x.is_dir()), Path('/etc').glob('*'))))))
```

Write:

```
from pathlib import Path
from thep import p, px

Path('/etc') | p.filter(px.is_dir) | p.map(str) | p(list) | p(' '.join) | p(print)
```

Project details


Download files

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

Files for hellp, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size hellp-0.0.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page