Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

filterediterator Library

The filteredIterator library implements the FilteredIterator class. This class provides a iterator wrap, which can be initialised from any other iterator, Iterable or sequence, and provides easy to use chained filtering methods

filterediterator.FilteredIterator( source iterable )

Initialises the FilteredIterator wrap around the source iterable. On it’s own there is no benefit to placing the Filter wrap around an existing iterable.

FilteredIterator.filter( predicate )

returns a modified Iterator which is filtered based on the predicate. The predicate is a callable which is passed the data item from the iterator. The item is retained in the iterator if and only if the predicate callable returns True for that item.

FilteredIterator.dropwhile( predicate )

returns a modified Iterator which is filtered based on the predicate. The predicate is a callable which is passed the data item from the iterator. The items are removed from the iterator while the predicate callable returns True. Once the predicate returns True, no future items are removed by dropwhile.

FilteredIterator.takewhile( predicate )

returns a modified Iterator which is filtered based on the predicate. The predicate is a callable which is passed the data item from the iterator. The items are retained in the iterator while the predicate callable returns True. Once the predicate returns False, the iterator Stops.

Chaining methods

All of the above methods return a FilteredIterator instance, and therefore can be chained together to create complex filters as required.

Metadata

Release files for filteredIterator 0.0.1rc1

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

Source distribution (sdist)

Source distribution for filteredIterator 0.0.1rc1
File Size Uploaded Provenance Actions
filteredIterator-0.0.1rc1.tar.gz 5.2 kB Without provenance Details for filteredIterator-0.0.1rc1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for filteredIterator 0.0.1rc1
File Interpreter ABI Platform Actions
filteredIterator-0.0.1rc1-py2.py3-none-any.whl Python 2, Python 3 none any Details for filteredIterator-0.0.1rc1-py2.py3-none-any.whl

Total release size: 10.0 kB

Release files / filteredIterator-0.0.1rc1.tar.gz

Download URL filteredIterator-0.0.1rc1.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
528f70ac7096d7d6daebe787c111be9f67ce58f97febdd6645e6cde558f4cdc5
BLAKE2b-256 checksum
How to use checksums
aba34b80f0ad84b66b9913abe4c11b39aa92fd268a4e909fd0d22cb7e626386c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / filteredIterator-0.0.1rc1-py2.py3-none-any.whl

Download URL filteredIterator-0.0.1rc1-py2.py3-none-any.whl
Size 4.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
a156a6faab75a7b12856fbd865deb91fd9d941da4a65683fd0a1b46ef3f0cdd4
BLAKE2b-256 checksum
How to use checksums
7ab8f547a1727808992ea34ae27c712d88ecaa67906a28c119488d9ccd936222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for filteredIterator 0.0.1rc1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release
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