{"id":16913439,"url":"https://github.com/frostming/rediswrapper","last_synced_at":"2025-04-11T16:14:37.400Z","repository":{"id":44952209,"uuid":"90221971","full_name":"frostming/rediswrapper","owner":"frostming","description":"Pythonic wrapper for Redis Client.","archived":false,"fork":false,"pushed_at":"2023-01-09T01:56:51.000Z","size":48,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T19:09:54.718Z","etag":null,"topics":["mock","pythonic","redis"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/frostming.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-04T04:34:53.000Z","updated_at":"2024-06-04T11:50:11.000Z","dependencies_parsed_at":"2023-02-08T08:15:46.057Z","dependency_job_id":null,"html_url":"https://github.com/frostming/rediswrapper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Frediswrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Frediswrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Frediswrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frostming%2Frediswrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frostming","download_url":"https://codeload.github.com/frostming/rediswrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248438515,"owners_count":21103410,"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":["mock","pythonic","redis"],"created_at":"2024-10-13T19:13:26.081Z","updated_at":"2025-04-11T16:14:37.380Z","avatar_url":"https://github.com/frostming.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redis Wrapper\n=============\n.. image:: https://img.shields.io/pypi/v/rediswrapper.svg\n  :target: https://pypi.org/project/rediswrapper\n.. image:: https://img.shields.io/pypi/pyversions/rediswrapper.svg\n  :target: https://pypi.org/project/rediswrapper\n.. image:: https://github.com/frostming/rediswrapper/actions/workflows/ci.yml/badge.svg\n  :target: https://github.com/frostming/rediswrapper/actions/workflows/ci.yml\n\n*rediswrapper is a pythonic wrapper of Redis Client for end users. The whole storage\nacts like a python dict as well as its child storage values.*\n\nFeatures\n--------\n* The root client support dict-like operations\n* Python object wrappers for list, set, hash type values\n* Implicit serialization and deserialization when storing and fetching data\n\nInstallation\n------------\nFrom PyPI::\n\n  pip install rediswrapper\n\nFrom GitHub::\n\n  git clone https://github.com/frostming/rediswrapper\n  cd rediswrapper\n  pip install .\n\n\nUsage\n-----\n\n``rediswrapper`` will try to serialize non-sting values and store them in redis and\ndeserialize them when fetching back.\n\nAll redis value types are mocked with respective python objects and support all\nstandard methods as the builtin types.\n\n.. code:: python\n\n  \u003e\u003e\u003e import rediswrapper\n  \u003e\u003e\u003e redis = rediswrapper.RedisDict()\n  # String value\n  \u003e\u003e\u003e redis['a'] = 'hello'\n  # int value\n  \u003e\u003e\u003e redis['b'] = 2\n  \u003e\u003e\u003e dict(redis)\n  {'a': 'hello', 'b': 2}\n  # Picklable object\n  \u003e\u003e\u003e import datetime\n  \u003e\u003e\u003e redis['c'] = datetime.datetime.now()\n  # List value\n  \u003e\u003e\u003e redis['d'] = list(range(5))\n  \u003e\u003e\u003e redis['d'].append(0)\n  \u003e\u003e\u003e redis['d']\n  ListType value([0, 1, 2, 3, 4, 0])\n  # Hash value\n  \u003e\u003e\u003e redis['e'] = {'a': 1, 'b': 2}\n  \u003e\u003e\u003e redis['e'].get('a')\n  1\n  # Set value\n  \u003e\u003e\u003e redis['f'] = set([1, 2])\n  \u003e\u003e\u003e redis['f'].add(3)\n  \u003e\u003e\u003e redis['f']\n  SetType value([1, 2, 3])\n\nTo inspect those value types, one should use the ABCs defined in ``collections``\nmodule.\n\n.. code:: python\n\n  \u003e\u003e\u003e from collections import Mapping\n  \u003e\u003e\u003e isinstance(redis['e'], Mapping)\n  True\n\nHistory\n-------\n\nv0.4.0\n    * Drop support for Python older than 3.6\n\nv0.3.0\n    * Drop support for Python 3.3\n    * Fix a vulnerability issue that cause users run arbitrary scripts.\n\nLicensing\n---------\nThis work is open-sourced under the `MIT \u003cLICENSE\u003e`_ license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostming%2Frediswrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrostming%2Frediswrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrostming%2Frediswrapper/lists"}