Registry / serialization / shared

shared

JSON →
library0.0.32pypypi✓ verified 80d ago

A Python library for data exchange and persistence using human-readable files. It provides a simple interface to save and load Python objects as JSON or YAML files. Current version is 0.0.32 (pre-release), with infrequent releases.

pip install shared
INSTALL
IMPORT
SIG · SHARED
S
shared
serializationpythonv0.0.32
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Datatype
from shared import Datatype
from shared import Shared
Dossier
from shared import Dossier
TypeRef
from shared import TypeRef

Basic usage: save and load Python dictionaries to/from human-readable files.

from shared import Shared # Create a Shared instance with a file path shared = Shared('config') # Save a dictionary shared.save({'key': 'value'}) # Load the data data = shared.load() print(data)
Debug
Known issues
deprecatedThe library is in pre-release (0.0.x) and API may change significantly between versions. Pin your dependency to avoid breakage.
fix
Pin version: shared==0.0.32
affects: <1.0.0
gotchaShared silently overwrites existing files without warning. Ensure you have backups or use a different directory.
fix
Check file existence manually before calling save() or use a unique filename.
affects: all
gotchaDefault serialization uses JSON. For YAML support, you must install PyYAML separately; otherwise, save will raise an error if the extension is .yaml.
fix
Install PyYAML: pip install pyyaml, then use .yaml extension.
affects: all
Upgrade
Version history
0.0.32latest on PyPI · released Dec 10, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
OpenAI (training)
1
Resources
shared — pip install shared · libregistry