Skip to main content

Tiny 'shelve'-like database with concurrency support

Project description

PickleShare - a small ‘shelve’ like datastore with concurrency support

Like shelve, a PickleShareDB object acts like a normal dictionary. Unlike shelve, many processes can access the database simultaneously. Changing a value in database is immediately visible to other processes accessing the same database.

Concurrency is possible because the values are stored in separate files. Hence the “database” is a directory where all files are governed by PickleShare.

Example usage:

from pickleshare import *
db = PickleShareDB('~/testpickleshare')
db.clear()
print "Should be empty:",db.items()
db['hello'] = 15
db['aku ankka'] = [1,2,313]
db['paths/are/ok/key'] = [1,(5,46)]
print db.keys()

This module is certainly not ZODB, but can be used for low-load (non-mission-critical) situations where tiny code size trumps the advanced features of a “real” object database.

Installation guide: easy_install pickleshare

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

pickleshare-0.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

pickleshare-0.2-py2.4.egg (25.6 kB view details)

Uploaded Source

File details

Details for the file pickleshare-0.2.tar.gz.

File metadata

  • Download URL: pickleshare-0.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pickleshare-0.2.tar.gz
Algorithm Hash digest
SHA256 ddac2898d9a440f2e75ce5001d5c0c3db2186b71f828a31d90e9738fc3f4dc36
MD5 0a52543380de55bcfe53eb77adb43775
BLAKE2b-256 24b5b35c58325a358e928167934013a49df2af9b637e5f55e0bf627ff1d35535

See more details on using hashes here.

File details

Details for the file pickleshare-0.2-py2.4.egg.

File metadata

File hashes

Hashes for pickleshare-0.2-py2.4.egg
Algorithm Hash digest
SHA256 76230cfd12ed2fb9cd885922c96d68f097f9eff49a9e9997ce31b5ca2322a8fa
MD5 0e06901ce9ac17892da5c654abbcdf29
BLAKE2b-256 9b2a8d1da939bd3417fc66236e321766363a504b07de54439c5635fba06da8dd

See more details on using hashes here.

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