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.1a3.tar.gz
(14.6 kB
view hashes)
Built Distribution
Close
Hashes for pipe_utils-0.0.1a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef04711a221b31fb1a494950f0a396f65395d9419e5e02f73f18826f75ce17be |
|
MD5 | 20511418d3a16de070e70e04ba2c7f5f |
|
BLAKE2b-256 | 16a6e55bec8d058241135f9c4641070b599f85a489a6cbbfc3941c0aa896d8ec |