Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

A single-file database storages key-value pairs.

Project description

pip install kiwilite

import kiwilite

with kiwilite.Open(‘<path-to-db-file>’) as storage:

# Set map data of key and value and save storage file. storage.Set({‘<key>’: ‘<value>’})

# Get value bytes of key. <value> = storage.Get(‘<key>’)

# Log: a list of timestones. [<list>, <of>, <timestones>] = storage.Log(<start-timestamp>, <end-timestamp>)

# Rollback to the last timestone before timestamp, # and clear all data after timestamp. storage.Rollback(<timestamp>)

# Lighten to the first timestone after timestamp, # and clear all invalid data before timestamp. # Data will not lose, but cannot rollback before timestamp. storage.Lighten(<timestamp>)

Project details

Download files

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

Files for kiwilite, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size kiwilite-0.0.1.tar.gz (21.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page