Python with pipes, utils, and pipe utils
Project description
Pipe Utils
Python with pipes, utils, and pipe utils.
from pipe_utils import Pipe
from pipe_utils.iterables import *
words = "I just think pipes are neat"
data = (
Pipe(words)
| str.lower
| str.split
| sorted_by(len)
| group_by(len)
| dict
).get()
print(data)
# {1: ['i'], 3: ['are'], 4: ['just', 'neat'], 5: ['think', 'pipes']}
Install
pip install pipe-utils
Docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pipe-utils-0.0.1.tar.gz
(14.8 kB
view hashes)
Built Distribution
pipe_utils-0.0.1-py3-none-any.whl
(10.6 kB
view hashes)
Close
Hashes for pipe_utils-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b561913cb3913de003fe59da5fa439f8bc408b1a57ed202d9a3209116ca2bfe4 |
|
MD5 | 83d656f6ac16e6c4b5b29867b19634fc |
|
BLAKE2b-256 | ba0928d94c1eb4ced2ca37fcd047bd786528fd3245fcb62da7be4434f534babe |