skillfed

pickleshare

Tiny 'shelve'-like database with concurrency support

pickleshare v0.7.5 15.2M downloads/30d#1,194 on PyPI73
Permissive license MIT DORMANT released

What it is and what it does

PickleShare is a lightweight, file-based datastore designed for low-load scenarios where multiple processes need to share data. Unlike the standard shelve module, it stores each key-value pair in a separate file within a directory, allowing true concurrent access—changes made by one process are immediately visible to others. The API mimics a Python dictionary, making it familiar to use.

The package is intended for non-mission-critical applications where simplicity and small code size matter more than the advanced features of a full object database. It uses pickle for serialization and relies on the filesystem for concurrency control, making it suitable for scenarios like inter-process communication or simple shared state in development and testing environments.

Use it for:

  • Sharing configuration or state between multiple worker processes in a simple application
  • Storing temporary results or caches that need to be accessible across process boundaries
  • Prototyping a multi-process system before committing to a more complex database solution
  • Passing data between independent scripts or services in a low-concurrency environment
  • Debugging and testing scenarios where you need quick, process-safe data persistence

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

PickleShare provides a dictionary-like datastore where multiple processes can read and write concurrently by storing each key-value pair in a separate file within a directory.

Yes, if you need simple inter-process data sharing in a low-load scenario and want to avoid external database dependencies. The permissive MIT license, low install friction, and stable codebase make it a reasonable choice for development, testing, or lightweight production use. However, the dormant maintenance status (no releases since 2018) means you should verify compatibility with your Python version and filesystem before relying on it for new projects.

Install

pickleshare on PyPI

pip

pip install pickleshare

uv

uv add pickleshare

poetry

poetry add pickleshare

Installing pickleshare

Before you install

Installation is straightforward with low friction; the package is dormant (last release 2018-09-25, last commit 2023-11-15) but remains stable and carries only one lightweight runtime dependency (pathlib2).

License in practice

MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely as long as you retain the license notice.

Quickstart

pip install pickleshare

from pickleshare import PickleShareDB
db = PickleShareDB('~/testpickleshare')
db['hello'] = 15
print(db['hello'])

Verify before relying

  • Whether pathlib2 is required on modern Python versions or only for Python 2 compatibility
  • Current performance characteristics under concurrent load compared to alternatives
  • Whether the package works reliably on Windows and other non-POSIX filesystems

Package facts

License MIT (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 1 — pathlib2
Maintenance dormant — 2,880 days since the last release
Last repo commit
First released
Downloads 15,209,634/month — #1,194 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pickleshare-0.7.5-py2.py3-none-any.whl

Keywords: database, persistence, pickle, ipc, shelve

License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3

Tags

concurrent file-based datastoremulti-process dictionary storagepickle-based key-value databaseshelve alternative with concurrencyinter-process data sharinglightweight persistent dictionaryfile-per-key storage
inter-process-communicationfile-based-storageconcurrency

More Database packages