Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Get cytoolz or toolz, whatever's around

Project description

Latest Version Supported Python versions Wheel Status Travis-CI Status

zbox is a tiny library to help me use toolz and cytoolz. I frequently use toolz and would like to use cytoolz if it’s available, but don’t want to put a try/except in all my projects. By importing toolz from zbox I always get cytoolz if cytoolz is installed and otherwise I get toolz.


zbox is on PyPI, install it with: pip install zbox. zbox works on Python 2 and Python 3.


from zbox import toolz

If cytoolz is installed toolz will be cytoolz, otherwise it will be toolz.


from zbox import gen

gen is a function that converts any iterable into a Python generator object. I use this with Pandas, which sometimes doesn’t expand iterables unless they are first converted to a generator.

Project details

Download files

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

Files for zbox, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size zbox-1.2.0-py2.py3-none-any.whl (3.4 kB) File type Wheel Python version any Upload date Hashes View hashes
Filename, size zbox-1.2.0.tar.gz (5.7 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size (8.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page