qmetrics.net

Toolz

Composable Python iterator and dict utilities

Toolz screenshot

Toolz is a pure-Python package of utility functions for iterators, higher-order functions, and dictionaries used in data-style workflows.

Overview

Toolz collects small functions for working with iterables, functions, and dictionaries in Python. It extends patterns familiar from itertools and functools and functional-language list processing, grouped into itertoolz, functoolz, and dicttoolz areas documented in the PyToolz API.

Functions are designed to compose: for example, grouping, currying, memoization, association updates on nested dicts, and frequency counting can be chained for tasks such as word counting over tokenized text. The library emphasizes pure functions without mutating inputs, lazy evaluation where appropriate, and serializable compositions suitable for parallel workflows.

Installation is via pip from PyPI. The codebase targets Python 3.9+ with no dependencies beyond the standard library. A separate CyToolz project offers a Cython reimplementation as a drop-in replacement for performance-sensitive use.

Maintainers describe the project as largely complete and still maintained for critical fixes and compatibility, while encouraging new work in other libraries. For analytics scripts and ETL-style Python that need light functional helpers without heavy frameworks, Toolz supplies building blocks.

Key features

  • Iterator grouping and transforms
  • Curry, compose, and memoize
  • Dictionary merge and update helpers
  • Lazy, composable pure functions
  • No third-party dependencies
  • PyPI pip installation
  • Curried namespace variants
  • Parallel-friendly serialization

Use cases

  • Composable data pipelines
  • Text token analytics
  • Functional-style Python scripts
  • Iterator-heavy transformations
  • Lightweight ETL helpers

Similar software

MarkItDown

Python utility converting office and media files to Markdown

MarkItDown converts many file types into Markdown for LLM and text analysis pipelines. It aims to preserve headings, lists, tables, and links rather than perfect human layout.

★ 198.7k⟳ 21 days agoMIT

OpenBB

Open-source data integration platform for analysts, quants and AI agents

Open Data Platform (ODP) by OpenBB connects proprietary, licensed and public data sources once, then exposes them to Python, OpenBB Workspace, Excel, MCP servers for AI agents, and REST APIs.

★ 75.8k⟳ 9 days agoApache-2.0

Docling

Document parsing toolkit for generative AI pipelines

Docling ingests PDFs, office files, media, email, and many other formats into a unified document model. It targets downstream RAG and agent workflows with local execution options.

★ 71.1k⟳ yesterdayMIT

pandas

Python data structures for labeled analysis

pandas is a Python package for working with labeled, tabular, and time-series data. It provides Series and DataFrame objects with alignment, grouping, and rich import and export options.

★ 50.7k⟳ yesterdayBSD-3-Clause

RSSHub

Open RSS feed network with community-maintained routes

RSSHub aggregates content from many online sources into RSS feeds and is maintained as an open source project with a large network of deployed instances.

★ 47.4k⟳ yesterdayAGPL-3.0

jq

Portable command-line JSON processor

jq slices, filters, maps, and transforms JSON from the shell. It is a standalone C binary with no runtime dependencies, plus an online playground and optional Docker image.

★ 36.4k⟳ 26 days agoMIT · open core