Typing, documenting, and improving toolz and cytoolz.
Project description
Z0Z_tools
Filesystem helpers plus the humpy_toolz, humpy_cytoolz, and humpy_tlz packages.
The audio processing modules previously in this repository now live in
hunterHearsPy.
Filesystem Helpers
from Z0Z_tools import dataTabularTOpathFilenameDelimited, findRelativePath
relative = findRelativePath("src/package", "docs/index.md")
dataTabularTOpathFilenameDelimited("table.tsv", [[1, "a"]], ["id", "value"])
humpy_toolz
humpy_toolz is a typed fork of toolz. It provides
composable functions for iterators, dictionaries, and function composition with type stubs.
from humpy_toolz import compose_left, curry, merge, pipe
merged = merge({"a": 1}, {"b": 2})
transform = compose_left(lambda x: x + 1, lambda x: x * 2)
result = pipe(3, transform)
humpy_cytoolz
humpy_cytoolz is the Cython-accelerated companion package. The core modules
dicttoolz, functoolz, itertoolz, recipes, and utils are built as extension
modules.
from humpy_cytoolz import curry, groupby, merge
humpy_tlz
humpy_tlz mirrors the humpy_toolz API and imports from humpy_cytoolz when available,
falling back to humpy_toolz otherwise.
from humpy_tlz import curry, groupby, pipe
Installation
pip install Z0Z_tools
My recovery
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file z0z_tools-2.0.0.tar.gz.
File metadata
- Download URL: z0z_tools-2.0.0.tar.gz
- Upload date:
- Size: 804.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7c300652efe2290bedef3e6d42825a6f3865604b0aef23598eb4b97f49f5856
|
|
| MD5 |
a89340b9657092e744b4baf16264a990
|
|
| BLAKE2b-256 |
2c5e13333f8c25cb7aa11fe812eb323203948711e69cd1e03a3a8a84548eabe5
|