Skip to main content

Cython implementation of Toolz: High performance functional utilities

Project description

Build Status Version Status

Cython implementation of the toolz package, which provides high performance utility functions for iterables, functions, and dictionaries.

toolz is a pure Python package that borrows heavily from contemporary functional languanges. It is designed to interoperate seamlessly with other libraries including itertools, functools, and third party libraries. High performance functional data analysis is possible with builtin types like list and dict, and user-defined data structures; and low memory usage is achieved by using the iterator protocol and returning iterators whenever possible.

cytoolz implements the same API as toolz. The main differences are that cytoolz is faster (typically 2-5x faster with a few spectacular exceptions) and cytoolz offers a C API that is accessible to other projects developed in Cython. Since toolz is able to process very large (potentially infinite) data sets, the performance increase gained by using cytoolz can be significant.

See the PyToolz documentation at https://toolz.readthedocs.io and the full API Documentation for more details.

LICENSE

New BSD. See License File.

Install

cytoolz is on the Python Package Index (PyPI):

pip install cytoolz

Dependencies

cytoolz supports Python 3.7+ with a common codebase. It is developed in Cython, but requires no dependecies other than CPython and a C compiler. Like toolz, it is a light weight dependency.

Contributions Welcome

toolz (and cytoolz) aims to be a repository for utility functions, particularly those that come from the functional programming and list processing traditions. We welcome contributions that fall within this scope and encourage users to scrape their util.py files for functions that are broadly useful.

Please take a look at our issue pages for toolz and cytoolz for contribution ideas.

Community

See our mailing list. We’re friendly.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cytoolz-0.12.3.tar.gz (625.9 kB view hashes)

Uploaded source

Built Distributions

cytoolz-0.12.3-pp310-pypy310_pp73-win_amd64.whl (340.7 kB view hashes)

Uploaded pp310

cytoolz-0.12.3-pp39-pypy39_pp73-win_amd64.whl (340.2 kB view hashes)

Uploaded pp39

cytoolz-0.12.3-pp38-pypy38_pp73-win_amd64.whl (341.0 kB view hashes)

Uploaded pp38

cytoolz-0.12.3-pp37-pypy37_pp73-win_amd64.whl (340.9 kB view hashes)

Uploaded pp37

cytoolz-0.12.3-cp312-cp312-win_amd64.whl (363.2 kB view hashes)

Uploaded cp312

cytoolz-0.12.3-cp312-cp312-win32.whl (320.5 kB view hashes)

Uploaded cp312

cytoolz-0.12.3-cp311-cp311-win_amd64.whl (363.6 kB view hashes)

Uploaded cp311

cytoolz-0.12.3-cp311-cp311-win32.whl (320.2 kB view hashes)

Uploaded cp311

cytoolz-0.12.3-cp310-cp310-win_amd64.whl (362.2 kB view hashes)

Uploaded cp310

cytoolz-0.12.3-cp310-cp310-win32.whl (320.9 kB view hashes)

Uploaded cp310

cytoolz-0.12.3-cp39-cp39-win_amd64.whl (364.4 kB view hashes)

Uploaded cp39

cytoolz-0.12.3-cp39-cp39-win32.whl (323.5 kB view hashes)

Uploaded cp39

cytoolz-0.12.3-cp38-cp38-win_amd64.whl (366.7 kB view hashes)

Uploaded cp38

cytoolz-0.12.3-cp38-cp38-win32.whl (324.7 kB view hashes)

Uploaded cp38

cytoolz-0.12.3-cp37-cp37m-win_amd64.whl (363.2 kB view hashes)

Uploaded cp37

cytoolz-0.12.3-cp37-cp37m-win32.whl (319.3 kB view hashes)

Uploaded cp37

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page