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-0.7.5.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-0.7.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pickleshare_modern-0.7.5.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-0.7.5.tar.gz
Algorithm Hash digest
SHA256 1c4fe18e5f68f7d010477effe0ce1cc7cf670ed31c52b5ff509d8a778f508514
MD5 eb22aa60d5cfab36a883d9f317383389
BLAKE2b-256 c9444abbdd9e01dd429bbce9a373305af26bdb544ee41f27d8fd893537c1775d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pickleshare_modern-0.7.5.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-0.7.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pickleshare_modern-0.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f112878de388a6170f18f233c4812bbfb218bb6c1799f4d0ed15018e61b30fad
MD5 d2887871c509920f2ae8576192112270
BLAKE2b-256 abebeb804664c342a390bc3e20d91373b2ce771b18f7b6f61bac558431ebd321

See more details on using hashes here.

Provenance

The following attestation bundles were made for pickleshare_modern-0.7.5-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