Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page