Skip to main content

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

Metadata

Release files for pickleshare 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pickleshare 0.2
File Size Uploaded Provenance Actions
pickleshare-0.2.tar.gz 10.9 kB Without provenance Details for pickleshare-0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pickleshare 0.2
File Interpreter ABI Platform Actions
pickleshare-0.2-py2.4.egg Legacy Egg format - - Details for pickleshare-0.2-py2.4.egg

Total release size: 36.5 kB

Release files / pickleshare-0.2.tar.gz

Download URL pickleshare-0.2.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ddac2898d9a440f2e75ce5001d5c0c3db2186b71f828a31d90e9738fc3f4dc36
BLAKE2b-256 checksum
How to use checksums
24b5b35c58325a358e928167934013a49df2af9b637e5f55e0bf627ff1d35535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pickleshare-0.2-py2.4.egg

Download URL pickleshare-0.2-py2.4.egg
Size 25.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
76230cfd12ed2fb9cd885922c96d68f097f9eff49a9e9997ce31b5ca2322a8fa
BLAKE2b-256 checksum
How to use checksums
9b2a8d1da939bd3417fc66236e321766363a504b07de54439c5635fba06da8dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pickleshare 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page