Skip to main content

A collection of useful extensions for python implement in C.

Project description

Ctools build status on Travis CI license version implementation python version wheel

CTools is a collection of useful data structures and functions written in C for Python.

Install:

Install and update using pip: pip install -U ctools

It provides:

  • Jump consistent hash. Find description here .

  • fnv1a, fnv1, djb2, and murmur string hash method.

  • A LFU (least frequently used) cache mapping class.

  • A TTL cache mapping class that all key expire after specific seconds.

  • A channel class support sending and receiving objects.

  • A SortedMap class based on red-black tree .

How To Test:

Simple, type make test and take a sip of coffee. Also can use make benchmark to run the benchmark test.

More:

What’s important is free.

Project details


Download files

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

Source Distribution

ctools-0.2.0.tar.gz (28.0 kB view hashes)

Uploaded Source

Built Distributions

ctools-0.2.0-cp39-cp39-manylinux2010_x86_64.whl (118.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

ctools-0.2.0-cp39-cp39-manylinux1_x86_64.whl (118.0 kB view hashes)

Uploaded CPython 3.9

ctools-0.2.0-cp39-cp39-manylinux1_i686.whl (97.2 kB view hashes)

Uploaded CPython 3.9

ctools-0.2.0-cp38-cp38-win_amd64.whl (31.9 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

ctools-0.2.0-cp38-cp38-manylinux2010_x86_64.whl (124.5 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

ctools-0.2.0-cp38-cp38-manylinux1_x86_64.whl (124.5 kB view hashes)

Uploaded CPython 3.8

ctools-0.2.0-cp38-cp38-manylinux1_i686.whl (100.2 kB view hashes)

Uploaded CPython 3.8

ctools-0.2.0-cp38-cp38-macosx_10_9_x86_64.whl (29.6 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

ctools-0.2.0-cp37-cp37m-win_amd64.whl (31.6 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

ctools-0.2.0-cp37-cp37m-manylinux2010_x86_64.whl (111.8 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

ctools-0.2.0-cp37-cp37m-manylinux1_x86_64.whl (111.8 kB view hashes)

Uploaded CPython 3.7m

ctools-0.2.0-cp37-cp37m-manylinux1_i686.whl (93.6 kB view hashes)

Uploaded CPython 3.7m

ctools-0.2.0-cp37-cp37m-macosx_10_9_x86_64.whl (29.5 kB view hashes)

Uploaded CPython 3.7m macOS 10.9+ x86-64

ctools-0.2.0-cp36-cp36m-win_amd64.whl (31.6 kB view hashes)

Uploaded CPython 3.6m Windows x86-64

ctools-0.2.0-cp36-cp36m-manylinux2010_x86_64.whl (112.4 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

ctools-0.2.0-cp36-cp36m-manylinux1_x86_64.whl (112.4 kB view hashes)

Uploaded CPython 3.6m

ctools-0.2.0-cp36-cp36m-manylinux1_i686.whl (91.4 kB view hashes)

Uploaded CPython 3.6m

ctools-0.2.0-cp36-cp36m-macosx_10_9_x86_64.whl (29.5 kB view hashes)

Uploaded CPython 3.6m macOS 10.9+ x86-64

ctools-0.2.0-cp35-cp35m-manylinux2010_x86_64.whl (111.7 kB view hashes)

Uploaded CPython 3.5m manylinux: glibc 2.12+ x86-64

ctools-0.2.0-cp35-cp35m-manylinux1_x86_64.whl (111.7 kB view hashes)

Uploaded CPython 3.5m

ctools-0.2.0-cp35-cp35m-manylinux1_i686.whl (91.2 kB view hashes)

Uploaded CPython 3.5m

ctools-0.2.0-cp35-cp35m-macosx_10_6_x86_64.whl (28.3 kB view hashes)

Uploaded CPython 3.5m macOS 10.6+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page