
Product
Socket Now Supports pylock.toml Files
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
.. image:: https://img.shields.io/pypi/v/rediswrapper.svg :target: https://pypi.org/project/rediswrapper .. image:: https://img.shields.io/pypi/pyversions/rediswrapper.svg :target: https://pypi.org/project/rediswrapper .. image:: https://github.com/frostming/rediswrapper/actions/workflows/ci.yml/badge.svg :target: https://github.com/frostming/rediswrapper/actions/workflows/ci.yml
rediswrapper is a pythonic wrapper of Redis Client for end users. The whole storage acts like a python dict as well as its child storage values.
From PyPI::
pip install rediswrapper
From GitHub::
git clone https://github.com/frostming/rediswrapper cd rediswrapper pip install .
rediswrapper
will try to serialize non-sting values and store them in redis and
deserialize them when fetching back.
All redis value types are mocked with respective python objects and support all standard methods as the builtin types.
.. code:: python
import rediswrapper redis = rediswrapper.RedisDict()
redis['a'] = 'hello'
redis['b'] = 2 dict(redis) {'a': 'hello', 'b': 2}
import datetime redis['c'] = datetime.datetime.now()
redis['d'] = list(range(5)) redis['d'].append(0) redis['d'] ListType value([0, 1, 2, 3, 4, 0])
redis['e'] = {'a': 1, 'b': 2} redis['e'].get('a') 1
redis['f'] = set([1, 2]) redis['f'].add(3) redis['f'] SetType value([1, 2, 3])
To inspect those value types, one should use the ABCs defined in collections
module.
.. code:: python
from collections import Mapping isinstance(redis['e'], Mapping) True
v0.4.0 * Drop support for Python older than 3.6
v0.3.0 * Drop support for Python 3.3 * Fix a vulnerability issue that cause users run arbitrary scripts.
This work is open-sourced under the MIT <LICENSE>
_ license.
FAQs
Pythonic wrapper for Redis Client.
We found that rediswrapper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports pylock.toml, enabling secure, reproducible Python builds with advanced scanning and full alignment with PEP 751's new standard.
Security News
Research
Socket uncovered two npm packages that register hidden HTTP endpoints to delete all files on command.
Research
Security News
Malicious Ruby gems typosquat Fastlane plugins to steal Telegram bot tokens, messages, and files, exploiting demand after Vietnam’s Telegram ban.