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.

Source Distribution

hellp-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

File details

Details for the file hellp-0.0.1.tar.gz.

File metadata

  • Download URL: hellp-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for hellp-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2a8ec910d5691dcdd3efb0cc8b6d1a69275791760648e7c34cb9c15f9a09d248
MD5 f1df4cb5ea45a584ac89858b3a796559
BLAKE2b-256 b5a575c54bf702269fe79ae8dbfb007f31e1de6bec9a9f606aa887da286662b9

See more details on using hashes here.

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