Skip to main content

Append only (type,key)/value store based on bitcask paper.

Project description

You can never have enough key value stores that are:
  • 100% python

  • based on bitcask

  • very fast (3x to 100x vs SQLite)

  • crash friendly

  • tested on millions of desktops for the Ubuntu One file sync client

Sample usage

Create a database

import tritcask
db = tritcask.Tritcask("/tmp/tcask")

Put and get and kill some database

>>> db.put(0, "hello", "data")
>>> db.keys()
[(0, 'hello')]
>>> db.get(0, "hello")
'data'
>>> db.delete(0, 'hello')
>>> db.keys()
[]

And it’s fast:

In [1]: time for i in xrange(10000): db.put(0, str(i), str(i))
CPU times: user 124 ms, sys: 52 ms, total: 176 ms
Wall time: 175 ms

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

Tritcask-0.3-py3-none-any.whl (23.2 kB view hashes)

Uploaded Python 3

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