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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

les_iterables-1.11.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: les_iterables-1.11.0.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for les_iterables-1.11.0.tar.gz
Algorithm Hash digest
SHA256 afb585e6a7f33757946fb4016f5fb16081f61c41d73f35580fd369cbf914af2e
MD5 7b1bcaaa4f8832e00eb5def6ed1eab96
BLAKE2b-256 a020397ef92cce36a0b3796219e376fc1461888ebd71addd5fe14f5719fc11b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: les_iterables-1.11.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for les_iterables-1.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00bcee00008166d95cb77de320f56ffe0c2b7ba72ecd2e5776805bcfcbd460b1
MD5 418396e45dbdb9895dc44a62f471c1f4
BLAKE2b-256 3abf8eccdff4e7c34a43dbaad48434263588eca96d2f5c956c09656de7ec2e7e

See more details on using hashes here.

Supported by

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