Skip to main content

Pipe Helper

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.

Source Distribution

hellp-0.0.0.tar.gz (2.7 kB view hashes)

Uploaded Source

Built Distribution

hellp-0.0.0-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

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