{"id":27390,"library":"shared","title":"Shared","description":"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.","status":"active","version":"0.0.32","language":"python","source_language":"en","source_url":"https://github.com/pyrustic/shared","tags":["data-exchange","persistence","human-readable","json","yaml"],"install":[{"cmd":"pip install shared","lang":"bash","label":"PyPI install"}],"dependencies":[],"imports":[{"wrong":"from shared import Shared","symbol":"Datatype","correct":"from shared import Datatype"},{"symbol":"Dossier","correct":"from shared import Dossier"},{"symbol":"TypeRef","correct":"from shared import TypeRef"}],"quickstart":{"code":"from shared import Shared\n\n# Create a Shared instance with a file path\nshared = Shared('config')\n# Save a dictionary\nshared.save({'key': 'value'})\n# Load the data\ndata = shared.load()\nprint(data)","lang":"python","description":"Basic usage: save and load Python dictionaries to/from human-readable files."},"warnings":[{"fix":"Pin version: shared==0.0.32","message":"The library is in pre-release (0.0.x) and API may change significantly between versions. Pin your dependency to avoid breakage.","severity":"deprecated","affected_versions":"<1.0.0"},{"fix":"Check file existence manually before calling save() or use a unique filename.","message":"Shared silently overwrites existing files without warning. Ensure you have backups or use a different directory.","severity":"gotcha","affected_versions":"all"},{"fix":"Install PyYAML: pip install pyyaml, then use .yaml extension.","message":"Default serialization uses JSON. For YAML support, you must install PyYAML separately; otherwise, save will raise an error if the extension is .yaml.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.0.32':34 'current':31 'data':6,42 'data-exchang':41 'exchang':7,43 'file':14,30 'human':12,46 'human-read':11,45 'infrequ':39 'interfac':19 'json':27,48 'librari':4 'load':23 'object':25 'persist':9,44 'pre':36 'pre-releas':35 'provid':16 'python':3,24 'readabl':13,47 'releas':37,40 'save':21 'share':1 'simpl':18 'use':10 'version':32 'yaml':29,49","created_at":"2026-05-01T17:46:01.444638+00:00","updated_at":"2026-05-01T17:46:01.444638+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/pyrustic/shared","docs":null,"changelog":null,"pypi":"https://pypi.org/project/shared/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization","data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}