{"id":26404477,"url":"https://github.com/nsls2/redis-json-dict","last_synced_at":"2025-03-17T16:36:01.208Z","repository":{"id":220844535,"uuid":"752742546","full_name":"NSLS2/redis-json-dict","owner":"NSLS2","description":"experimental Redis-backed JSON serializable dict","archived":false,"fork":false,"pushed_at":"2024-11-18T03:57:31.000Z","size":63,"stargazers_count":0,"open_issues_count":5,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-21T09:12:02.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NSLS2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-04T17:22:59.000Z","updated_at":"2024-10-16T20:10:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"2ba73554-c029-4da3-aaf7-2749d71dba7a","html_url":"https://github.com/NSLS2/redis-json-dict","commit_stats":null,"previous_names":["nsls2/redis-json-dict"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSLS2%2Fredis-json-dict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSLS2%2Fredis-json-dict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSLS2%2Fredis-json-dict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NSLS2%2Fredis-json-dict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NSLS2","download_url":"https://codeload.github.com/NSLS2/redis-json-dict/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244069611,"owners_count":20393054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-17T16:36:00.658Z","updated_at":"2025-03-17T16:36:01.200Z","avatar_url":"https://github.com/NSLS2.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redis-json-dict\n\n[![Actions Status][actions-badge]][actions-link]\n[![Documentation Status][rtd-badge]][rtd-link]\n\n[![PyPI version][pypi-version]][pypi-link]\n[![Conda-Forge][conda-badge]][conda-link]\n[![PyPI platforms][pypi-platforms]][pypi-link]\n\n[![GitHub Discussion][github-discussions-badge]][github-discussions-link]\n\n\u003c!-- SPHINX-START --\u003e\n\n## Usage\n\n```pycon\n\u003e\u003e\u003e import redis\n... redis_client = redis.Redis(\"localhost\", 6379)\n... d = RedisJSONDict(redis_client, prefix=\"my_dict\")\n... d\n{}\n```\n\nAll user modifications, including mutation of nested lists or dicts, are\nimmediately synchronized to the Redis server.\n\n## Design Requirements\n\n- The dictionary implements Python's `collections.abc.MutableMapping` interface.\n- All values stored in Redis are JSON-encoded, readily inspected with developer\n  eyeballs and possible to operate on from clients in languages other than\n  Python.\n- Keys may be prefixed to reduce the likelihood of collisions when one Redis is\n  shared by multiple applications.\n- No data is cached locally, so it is impossible to obtain a stale result.\n  However, the dictionary may be _composed_ with other libraries, such as\n  `cachetools`, to implement TTL caching for example.\n- Top-level items like `d['sample']` may be accessed without synchronizing the\n  entire dictionary. Nested objects like `d['sample']['color']` are supported\n  (but may be less efficient).\n- Mutating nested items, with operations like `d['sample']['color'] = 'red'` or\n  `d['sample']['positions'].append(3)` triggers synchronization.\n\n\u003c!-- prettier-ignore-start --\u003e\n[actions-badge]:            https://github.com/NSLS2/redis-json-dict/workflows/CI/badge.svg\n[actions-link]:             https://github.com/NSLS2/redis-json-dict/actions\n[conda-badge]:              https://img.shields.io/conda/vn/conda-forge/redis-json-dict\n[conda-link]:               https://github.com/conda-forge/redis-json-dict-feedstock\n[github-discussions-badge]: https://img.shields.io/static/v1?label=Discussions\u0026message=Ask\u0026color=blue\u0026logo=github\n[github-discussions-link]:  https://github.com/NSLS2/redis-json-dict/discussions\n[pypi-link]:                https://pypi.org/project/redis-json-dict/\n[pypi-platforms]:           https://img.shields.io/pypi/pyversions/redis-json-dict\n[pypi-version]:             https://img.shields.io/pypi/v/redis-json-dict\n[rtd-badge]:                https://readthedocs.org/projects/redis-json-dict/badge/?version=latest\n[rtd-link]:                 https://redis-json-dict.readthedocs.io/en/latest/?badge=latest\n\n\u003c!-- prettier-ignore-end --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsls2%2Fredis-json-dict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsls2%2Fredis-json-dict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsls2%2Fredis-json-dict/lists"}