Skip to content

CFFI and Cython wrappers for Judy.

License

Notifications You must be signed in to change notification settings

botify-labs/judyz

Repository files navigation

judyz

judyz is another (pair of) Python wrapper(s) for the Judy library.

It implements both a CFFI and a Cython wrapper.

Note that the Cython wrapper is currently unmaintained: it doesn't work with PyPy, unlike CFFI.

judyz-cython must be compiled, unlike judyz-cffi.

Compilation Requirements

  • libjudy-dev
  • cython
  • libffi-dev
  • python-cffi (or pypy)
  • ...

Distribution

judyz-cffi is distributed as source:

python setup.py sdist

judyz_cython can be distributed as a wheel:

python setup.py bdist_wheel

See the Dockerfile for an example of a Python 3.7 wheel.

To compile judyz-cython inplace:

cd src/judycython
python setup.py build_ext -i
cd ../..
nosetests

Installation From Local Build

If pip install doesn't work: pip install --pre --no-index --find-links .../judyz/src/judyzcffi/dist/judyz_cffi-0.1.tar.gz judyz-cffi

easy_install .../judyz/src/judyzcython/dist/judyz_cython-0.1-py2.7-linux-x86_64.egg

Usage Requirements

  • libjudydebian1 (not the Ubuntu 14.04 buggy one)
  • judyz-cffi: currently tested with libffi6 or libffi7