a python library that implements optimized versions of common python functionality
Python C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
doc
include/snakeoil
snakeoil
src
.coveragerc
.gitattributes
.gitignore
.travis.yml
AUTHORS
BSD
GPL2
LICENSE
MANIFEST.in
NEWS.rst
README.rst
pkgdist.py
setup.cfg
setup.py
tox.ini

README.rst

pypi test coverage Documentation Status

snakeoil

snakeoil is a python library that implements optimized versions of common python functionality. Some classes and functions have cpython equivalents, but they all have native python implementations too.

Installing

Installing latest pypi release in a virtualenv:

pip install snakeoil

Installing from git in a virtualenv:

pip install https://github.com/pkgcore/snakeoil/archive/master.tar.gz

Installing from a tarball or git repo:

python setup.py install

Tests

A standalone test runner is integrated in setup.py; to run, just execute:

python setup.py test

In addition, a tox config is provided so the testsuite can be run in a virtualenv setup against all supported python versions. To run tests for all environments just execute tox in the root directory of a repo or unpacked tarball. Otherwise, for a specific python version execute something similar to the following:

tox -e py27

Note that mock is required for tests if you're using anything less than python 3.3.

Contact

For support and development inquiries join #pkgcore on Freenode.

For bugs and feature requests please create an issue on Github.