Python with pipes, utils, and pipe utils
Project description
Pipe Utils
Python with pipes, utils, and pipe utils.
Note: pipe-utils is in alpha and significant API changes are expected
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
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.1a1.tar.gz
(10.4 kB
view hashes)
Built Distribution
Close
Hashes for pipe_utils-0.0.1a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40fe22f156c6a44a72ef85fc2613ab2b72ad9144c23eb6c9cf8a69e85a2201ab |
|
MD5 | 1319092a7d32e88234e3308c29ac4766 |
|
BLAKE2b-256 | f1a8f68181f6e6f3df6a4f8c34e41e1a9a7e6897ea563bc00e3d7319014f06e5 |