Metadata-Version: 2.0
Name: zbox
Version: 1.2.0
Summary: Get cytoolz or toolz, whatever's around
Home-page: https://github.com/jiffyclub/zbox
Author: Matt Davis
Author-email: jiffyclub@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: License :: OSI Approved :: ISC License (ISCL)
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4

zbox
====

.. image:: https://pypip.in/version/zbox/badge.svg
    :target: https://pypi.python.org/pypi/zbox/
    :alt: Latest Version

.. image:: https://pypip.in/py_versions/zbox/badge.svg
    :target: https://pypi.python.org/pypi/zbox/
    :alt: Supported Python versions

.. image:: https://pypip.in/wheel/zbox/badge.svg
    :target: https://pypi.python.org/pypi/zbox/
    :alt: Wheel Status

.. image:: https://travis-ci.org/jiffyclub/zbox.svg?branch=master
    :target: https://travis-ci.org/jiffyclub/zbox
    :alt: 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``.

Installation
------------

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

Usage
-----

.. code::

   from zbox import toolz

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

gen
~~~

.. code::

    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.

.. _toolz: http://toolz.readthedocs.org/
.. _cytoolz: https://github.com/pytoolz/cytoolz/


