Skip to main content

Maintained modern fork of PickleShare with Python 3.14 support

Project description

pickleshare-modern

pickleshare-modern is a small shelve-like datastore with file-based concurrency support.

It is a maintained fork of the original pickleshare project, intended for modern Python releases including Python 3.14, while keeping the original MIT license.

The published package name is pickleshare-modern, while the import path stays pickleshare for compatibility with existing code.

Why This Fork Exists

The original project is a neat tiny library, but it has not been updated in years. This fork keeps the same lightweight design and API while updating the code and packaging for current Python environments.

Features

  • Dictionary-like API
  • File-per-key storage
  • Simple multi-process visibility for updates
  • Nested keys such as paths/are/ok/key
  • Hashed helper methods via hset() and hget()
  • Python 3.9+ support, including Python 3.14

Installation

Install from PyPI:

pip install pickleshare-modern

Install from source:

pip install .

Compatibility

  • Distribution name: pickleshare-modern
  • Import path: pickleshare
  • Supported Python versions: 3.9 to 3.14

Usage

from pickleshare import PickleShareDB

db = PickleShareDB("~/testpickleshare")
db.clear()

db["hello"] = 15
db["aku ankka"] = [1, 2, 313]
db["paths/are/ok/key"] = [1, (5, 46)]

print(db["hello"])
print(db.keys())

db.hset("hash", "aku", 12)
print(db.hget("hash", "aku"))

link = db.getlink("myobjects/test")
link.foo = 2
link.bar = link.foo + 5
print(link.bar)

Notes

  • This library is intentionally small and simple.
  • It works well for low-load, non-mission-critical persistence.
  • It is not a replacement for a full database or object store.

License And Attribution

This project remains available under the MIT License.

This fork is based on the original pickleshare project by ipython. The license and copyright notice are preserved.

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_modern-1.0.1.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pickleshare_modern-1.0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file pickleshare_modern-1.0.1.tar.gz.

File metadata

  • Download URL: pickleshare_modern-1.0.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pickleshare_modern-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7cca4ecfc02155f0629647a58340a5ddfdbe1039cfb404d4b9b2454bb2aa725c
MD5 4affe5084626baf882e78ca357036f23
BLAKE2b-256 3a78e6c7ed4c737e58a6cbaaefde983869d53abc64aaefc8900ffe40c570a42e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pickleshare_modern-1.0.1.tar.gz:

Publisher: publish.yml on TharakaUmayanga/pickleshare-modern

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pickleshare_modern-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pickleshare_modern-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82f47d56df677e8151b95540b6ec6de40e10e72f8d91a42e3556e94b4f34a9e9
MD5 3c4eca1a40cb3c510679a7ee937173b3
BLAKE2b-256 2ac03ec7acd7393efb904dbd99a3a68edddc46e5ef2fdaa34ebf45c77ac70d80

See more details on using hashes here.

Provenance

The following attestation bundles were made for pickleshare_modern-1.0.1-py3-none-any.whl:

Publisher: publish.yml on TharakaUmayanga/pickleshare-modern

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page