Skip to main content

Iterable processing functions

Project description

Les Itérables

Documentation Status

CI

codecov

Installation

$ pip install les_iterables

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

$ bumpversion patch
$ git push --follow-tags

MIT License

Copyright (c) 2020 Sixty North AS

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


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-1.14.0.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

les_iterables-1.14.0-py3-none-any.whl (18.3 kB view details)

Uploaded Python 3

File details

Details for the file les_iterables-1.14.0.tar.gz.

File metadata

  • Download URL: les_iterables-1.14.0.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for les_iterables-1.14.0.tar.gz
Algorithm Hash digest
SHA256 07eddd16841be95dd69040b7b3b3073a0d893fd08960dfce4d365ef129fc05d2
MD5 26c78c52a376a9d113253d75dc62bb29
BLAKE2b-256 687416a8ebaa0f308627a24e7bda4773f56ad0f72a1c660f5f188b868c09d6ce

See more details on using hashes here.

File details

Details for the file les_iterables-1.14.0-py3-none-any.whl.

File metadata

File hashes

Hashes for les_iterables-1.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 783066506514bff090cee220f5a57d1e0feed78f027eaeadc19e3acef3ee0925
MD5 4b26c2638bc6ddc72040b305db9d4f98
BLAKE2b-256 46c38338a4301651a92ead0378b5f82cbbb332b777f5f710d9ea830d7be6a7a3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page