lmz
small functions that should be part of python3, supplementing generator functions
What it is and what it does
lmz is a small utility library that wraps common functional programming operations—Map, Zip, Filter, Grouper, Range, Transpose, Flatten—into convenient functions intended to supplement Python's built-in generator tools. It has no runtime dependencies and is designed for developers who want a more direct, list-returning interface to these operations rather than working with iterators or generator expressions.
The package is dormant (last release 2024-08-14) and carries a GPLv3 copyleft license. It supports Python >=3.8. Use it when you need quick, readable functional transformations on sequences and prefer explicit function calls over chained comprehensions or itertools.
Use it for:
- Group a sequence into fixed-size chunks without manual slicing logic.
- Apply a function with keyword arguments across an iterable using Map.
- Flatten nested iterables from grouping or other operations.
- Transpose a 2D structure (e.g., rows to columns) in a single call.
- Select a specific element from an iterator by index without materializing the whole sequence.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides convenience functions for mapping, filtering, grouping, and transposing iterables—operations that complement Python's built-in generator functions.
Yes, if you work frequently with sequences and prefer explicit, readable functional calls over comprehensions or itertools—and if you accept GPLv3 licensing. No, if you need active maintenance, comprehensive documentation, or proprietary-compatible licensing. The high install friction and dormant status suggest it is stable but not under active development.
Install
lmz on PyPI
pip
pip install lmzuv
uv add lmzpoetry
poetry add lmzInstalling lmz
Before you install
High install friction with no runtime dependencies. Package is dormant (last update 2024-08-14), though it remains available and supports current Python versions (>=3.8).
License in practice
GPLv3 copyleft license requires that any derivative work or distribution be licensed under GPLv3 as well—suitable for open-source projects but restrictive for proprietary use.
Quickstart
pip install lmz
from lmz import Map, Grouper, Flatten, Transpose
result = Map(lambda x: x + 1, range(5))
grouped = Grouper(range(10), 3)
Requires Python >=3.8.
Verify before relying
- What 'high install friction' means for a zero-dependency package (may reflect distribution or build issues).
- Whether dormant status indicates the package is no longer receiving updates or is stable as-is.
- Current maintenance intentions and whether the repository accepts contributions.
Package facts
| License | GPLv3 (copyleft) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | dormant — 730 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 83,668/month — #14,056 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lmz-0.1.20.tar.gz
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
more-itertoolsProvides additional iterator utilities and…
permissive · top 1,000 on PyPI
pipePipe enables shell-like infix syntax for…
permissive · top 15,000 on PyPI
iterproxyWraps any iterable object to provide ORM-style…
permissive · top 5,000 on PyPI
asyncstdlibProvides async-compatible versions of Python…
permissive · top 5,000 on PyPI
json-normalizeRecursively flattens nested JSON-like…
permissive · top 15,000 on PyPI
jaraco.itertoolsProvides additional iterator utilities and…
permissive · top 15,000 on PyPI
cytoolzCython-accelerated implementation of the toolz…
permissive · top 5,000 on PyPI
flupyFlupy provides a fluent interface for lazy…
permissive · top 5,000 on PyPI
iterable-ioWraps iterables (generators, lists, etc.) as…
copyleft · top 15,000 on PyPI
funcyFuncy provides a collection of functional…
permissive · top 5,000 on PyPI