Metadata-Version: 2.0
Name: splendid
Version: 1.0.2
Summary: Splendid, a collection of useful, small python tools.
Home-page: https://github.com/pythoncircus/splendid
Author: Joachim Folz, Jörn Hees
Author-email: joachim.folz+splendid@gmail.com, splendid@joernhees.de
License: MIT
Keywords: splendid tools utils wrappers useful small often needed
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities
Requires-Dist: six

splendid
========

splendid is a collection of useful small python tools to make your life easier.

Visit us on https://github.com/pythoncircus/splendid !


Some Examples
-------------

    >>> from splendid import chunker
    >>> list(chunker([1, 2, 3, 4, 5], 3))
    [[1, 2, 3], [4, 5]]

    >>> from splendid import get_path
    >>> get_path({'foo':[{'bar':3}]}, ['foo'], 'not found')
    [{'bar': 3}]
    >>> get_path({'foo':[{'bar':3}]}, ['foo', 'bar'], 'not found')
    'not found'
    >>> get_path({'foo':[{'bar':3}]}, ['foo', 0, 'bar'], 'not found')
    3
    >>> get_path({'foo':[{'bar':3}]}, ['foo', 0], 'not found')
    {'bar': 3}

    >>> from splendid import run_once
    >>> @run_once
    ... def foo():
    ...     print('bar')
    >>> for i in range(10):
    ...     foo()
    bar



