Skip to main content

Redisary

Redis is a key-value database. Interestingly Python dictionaries are some how key-value data structure. So why not write a wrapper that maps Python dictionary to Redis server.

Installation

Simply you can install it from PyPi by following command:

pip install -U redisary

or if you prefer the latest development version, you can install it from the source:

git clone https://github.com/xurvan/redisary.git
cd redisary
python setup.py install

Quickstart

A very simple usage could be like:

from redisary import Redisary

redis = Redisary(host='127.0.0.1', db=0)

redis['k'] = 'data'
data = redis['k']

Well it works like a normal dictionary, the only advantage is data now stored on Redis and we could access it from another process.

We also could set an expire for all keys of dictionary:

from redisary import Redisary

redis = Redisary(expire=800)

redis['k'] = 'temporary'

TODO

  • Map Redis 'string' to Python 'str'
  • Map Redis 'list' to Python 'list'
  • Map Redis 'hash' to Python 'dict'
  • Map Redis 'set' to Python 'set'
  • Map Redis 'sorted set' to something!

Metadata

Release files for redisary 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for redisary 0.1.2
File Size Uploaded Provenance
redisary-0.1.2.tar.gz 2.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for redisary 0.1.2
File Interpreter ABI Platform
redisary-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.2 kB

Release files / redisary-0.1.2.tar.gz

Download URL redisary-0.1.2.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8991d023d94e952ecc20c4af3cff7efb34ff8a055c82a934611954464a0ba23f
BLAKE2b-256 checksum
How to use checksums
51afaaf9524ff03ab7dd3f4eaa5a4efb1b9cc83beb15ef7e1cd49e11e1e672b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.3

Release files / redisary-0.1.2-py3-none-any.whl

Download URL redisary-0.1.2-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8adc6ecd5491fec34d1b14a25795ae1aeab9fceae2d43b6e16e142b3140f3927
BLAKE2b-256 checksum
How to use checksums
13bc1385f1c2e8897d72e73947802e8caef86c47b9153f67a8bf11e81a7d769f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.3

Security for redisary 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page