Iterable processing functions
Project description
Installation
$ pip install les_iterables
Tests
Nope. Possibly this is simple enough that there are obviously no errors. I'll doubtless be proven wrong.
Examples
A collection of utility functions for processing iterable series which aren't in itertools or more-itertools. Some are little more than simple aliases with less confusing names.
>>> from les_iterables import *
>>> is_odd = lambda x: x%2 != 0
>>>
>>> list(retain_if(is_odd, range(10))
[1, 3, 5, 7, 9]
>>>
>>> list(reject_if(is_odd, range(10))
[0, 2, 4, 6, 8]
>>>
>>> list(retain_truthy(reject_if(is_odd, range(10)))
[2, 4, 6, 8]
CI/CD
LOL.
To release, there is a short manual process:
$ bumpversion patch
$ python setup.py sdist bdist_wheel
$ twine upload dist/* --config-file=path/to/sixty-north.pypirc
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
les_iterables-0.3.0.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for les_iterables-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df5f5a05781de2fb2a24bf49f6fb9d97a22aa6dbc9dcc3a51ea130cdf064ee1e |
|
MD5 | d7a7e8310fbac8a89ff5e54a45aa5182 |
|
BLAKE2b-256 | 4cfa22e168a9fde9b34b088d7745010632a791b9134f2e52fe3362391bd75ea5 |