zlinq
Python reimplementation of LINQ to Objects — lazy, chainable, fully typed query operators for iterables.
Install
uv add zlinq
or
pip install zlinq
Quick example
from zlinq import Enumerable
result = (Enumerable([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
.where(lambda x: x % 2 == 0)
.select(lambda x: x * 10)
.take(3)
.to_list())
# [20, 40, 60]
Operators
All operators are available both as Enumerable methods (method chaining) and as standalone functions imported directly from zlinq.
| Category | Operators |
|---|---|
| Generation | empty, range, repeat |
| Filtering | where, of_type |
| Projection | select, select_many |
| Partitioning | take, skip, take_while, skip_while, chunk |
| Element | first / first_or_default, last / last_or_default, single / single_or_default, element_at / element_at_or_default, default_if_empty |
| Aggregation | count, sum, min, max, average, aggregate, scan, min_by, max_by |
| Quantifiers | any, all, contains |
| Set | distinct, distinct_by, union, union_by, intersect, intersect_by, except_, except_by |
| Ordering | order_by, order_by_descending, then_by, then_by_descending, reverse |
| Grouping | group_by, to_lookup |
| Joining | join, group_join |
| Concatenation | concat, append, prepend |
| Zip | zip |
| Conversion | to_list, to_dictionary, to_hash_set, to_lookup, as_enumerable |
| Equality | sequence_equal |
Documentation
Full API reference and usage guides are available at the MkDocs site (run mkdocs serve locally).
License
Licensed under the MIT License.
Metadata
Release files for zlinq 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| zlinq-0.1.0.tar.gz | 9.3 kB | Without provenance | Details for zlinq-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| zlinq-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for zlinq-0.1.0-py3-none-any.whl |
Total release size: 24.5 kB
Release files / zlinq-0.1.0.tar.gz
| Download URL | zlinq-0.1.0.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf3619f74a50ea29d10f86a251448447305d23282abf69dd5df40354cf908be0
|
|
BLAKE2b-256 checksum How to use checksums |
57dfdfe0461afaefecaebf4f5cacad674ada1858163a7ca48715b2801a47458b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / zlinq-0.1.0-py3-none-any.whl
| Download URL | zlinq-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1446de9968a74175b3f7aefccbe55a24f222acdce2b44eeda1c258b2bce0e665
|
|
BLAKE2b-256 checksum How to use checksums |
2182af87b725ef9e5664b31757aeef77656784e1f7988370a627597fbe7231dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.11 {"installer":{"name":"uv","version":"0.11.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"43","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for zlinq 0.1.0
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.