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.1.0.tar.gz
(16.4 kB
view hashes)
Built Distribution
pipe_utils-0.1.0-py3-none-any.whl
(12.0 kB
view hashes)
Close
Hashes for pipe_utils-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f19939bdab4f2deb7cf5c7ca5bb12a4cdf8a040c2e4d098f90a4e42964b84a |
|
MD5 | 1a3206d9d75e419d85ad0f8e526d1eb5 |
|
BLAKE2b-256 | 8229fd1d77fbda4eec680d7d2a288c90ddafb3ab3af26ff7c390a0a6b67ee002 |