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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: les_iterables-1.15.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.15.0.tar.gz
Algorithm Hash digest
SHA256 47d2c76ca5b69b25feaa88a86dc72044523d2c313ff8c735af917f1f8e5a4d7c
MD5 b459f283ac285633b0a2f49d9cd24144
BLAKE2b-256 706de8ae03fe657856fe4abf7b327ae1bfc9b5ef9ce08905f587aecc428d038f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for les_iterables-1.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed282db047428db00feac24b20b0ee0f8d91d180b002317bf72aa465368eead
MD5 7c3809da5c3ee5c6c5736126c7dea894
BLAKE2b-256 bfdc8d711aead3d2a9463ef10abc27170f69aaa799f69a2022361dda7e66e15b

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