This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Get cytoolz or toolz, whatever's around

Project Description

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.

Installation

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

Usage

from zbox import toolz

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

gen

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.

Release History

Release History

This version
History Node

1.2.0

History Node

1.1.0

History Node

1.0.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
zbox-1.2.0-py2.py3-none-any.whl (3.4 kB) Copy SHA256 Checksum SHA256 any Wheel Mar 31, 2015
zbox-1.2.0.tar.gz (5.7 kB) Copy SHA256 Checksum SHA256 Source Mar 31, 2015
zbox-1.2.0.zip (8.3 kB) Copy SHA256 Checksum SHA256 Source Mar 31, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting