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 *
from pipe_utils.mappings import *
words = "I just think pipes are neat"
result = (
Pipe(words)
| str.lower
| str.split
| group_by(len)
| sorted_dict
).get()
print(result)
# {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.2.0.tar.gz
(19.2 kB
view hashes)
Built Distribution
pipe_utils-0.2.0-py3-none-any.whl
(13.5 kB
view hashes)
Close
Hashes for pipe_utils-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acb2c6cc9b5efcee83080c45801a6880b9c3a7d9baf9464658aeefea4919ab77 |
|
MD5 | 2111bd5ef152a0c3aa7dc249b1b3b764 |
|
BLAKE2b-256 | 869824dc1172b82a1dc06f223610920db54efe78e45617e99594d7f3779c31e0 |