Skip to main content

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.

Metadata

Release files for les-iterables 1.15.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for les-iterables 1.15.0
File Size Uploaded
les_iterables-1.15.0.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for les-iterables 1.15.0
File Interpreter ABI Platform
les_iterables-1.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 34.0 kB

Release files / les_iterables-1.15.0.tar.gz

Download URL les_iterables-1.15.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
47d2c76ca5b69b25feaa88a86dc72044523d2c313ff8c735af917f1f8e5a4d7c
BLAKE2b-256 checksum
How to use checksums
706de8ae03fe657856fe4abf7b327ae1bfc9b5ef9ce08905f587aecc428d038f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / les_iterables-1.15.0-py3-none-any.whl

Download URL les_iterables-1.15.0-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ed282db047428db00feac24b20b0ee0f8d91d180b002317bf72aa465368eead
BLAKE2b-256 checksum
How to use checksums
bfdc8d711aead3d2a9463ef10abc27170f69aaa799f69a2022361dda7e66e15b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

1.15.0 This release

2 release files

1.14.0

2 release files

1.13.0

2 release files

1.12.1

2 release files

1.11.1

2 release files

1.11.0

2 release files

1.9.0

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.5

2 release files

0.8.4

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page