Skip to main content

little-shelf

Synchronized dictionaries using Greg Little's shelf CRDT.

Changes/patches can be distributed to peers through any channel. See the understory's Braid implementation as an example of real world usage.

Install

pip install little-shelf

Use

>>> import littleshelf
>>> alice = littleshelf.LittleShelf()
>>> bob = littleshelf.LittleShelf()
>>> patch = alice.set(ham="spam")
>>> patch
[{'ham': ['spam', 0]}, 0]
>>> alice
{'ham': 'spam'}
>>> alice == bob
False
>>> bob.merge(patch)
>>> alice == bob
True
>>> bob.get("ham") == bob["ham"] == "spam"
True

Metadata

Release files for little-shelf 0.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 little-shelf 0.0.2
File Size Uploaded Provenance
little-shelf-0.0.2.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for little-shelf 0.0.2
File Interpreter ABI Platform
little_shelf-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / little-shelf-0.0.2.tar.gz

Download URL little-shelf-0.0.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b2041760874f520f5565aa427e55fbef11db856873f009c417197ae273f382bb
BLAKE2b-256 checksum
How to use checksums
09c0850d942787fdcc7cbfcae1b61870c9731162c820f098c691ba2b4eeecc8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/4.19.0-16-amd64

Release files / little_shelf-0.0.2-py3-none-any.whl

Download URL little_shelf-0.0.2-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
247d16f1fc2da795d912ad3380a4320c1e6838ef42a83d41c40b7557b4d404e3
BLAKE2b-256 checksum
How to use checksums
aa797333120de9fd317eb41dba95ab65b753c446ab588f1508e53f1c4bf426bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.9.1 Linux/4.19.0-16-amd64

Security for little-shelf 0.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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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