Skip to content

hunterhogan/Z0Z_tools

Repository files navigation

Z0Z_tools

Temporary home for humpy_toolz, humpy_cytoolz, and humpy_tlz packages while improving them. The audio processing modules previously in this repository now live in hunterHearsPy.

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

Standard library operator module is "curried"

from humpy_toolz.curried import operator
from humpy_cytoolz.curried import operator

Installation

pip install Z0Z_tools

Sources

  1. toolz
  2. cytoolz
  3. toolz-stubs
  4. cytoolz-stubs

My recovery

Static Badge YouTube Channel Subscribers

CC-BY-NC-4.0

About

Temporary home for modernizing the toolz and cytoolz packages.

Topics

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-Rocklin
Unknown
LICENSE-Welch

Stars

2 stars

Watchers

1 watching

Forks

Contributors