Skip to main content

redys

A simple redis-like in pure python3, fully asyncio/thread/process compliant !

on pypi/redys

features

  • asyncio compliant
  • client Sync (Client) & Async (AClient)
  • 100% tested on all platforms ("3.7", "3.8", "3.9", "3.10", "3.11" on ubuntu-latest, macos-latest, windows-latest) NEW
  • very quick
  • classics commands : get/set/delete/keys & incr/decr
  • sets commands : sadd/srem
  • queue commands : rpush/lpush/rpop/lpop
  • pubsub commands : subscribe/unsubscribe/get_event & publish
  • cache commands : setex
  • ping() command ;-)
  • KILL() command (so a client can kill the server) NEW
  • exchange everything that is pickable (except None)
  • raise real python exception in client side
  • minimal code size
  • works well on GAE Standard (2nd generation/py37)
  • just in-memory !

why ?

Redis is great, but overbloated for my needs. Redys is simple, you can start the server side in an asyncio loop, and clients can interact with a simple in-memory db. Really useful when clients are in async/threads/process(workers)/multi-hosts world, to share a unique source of truth.

nb

  • The sync client (Client) use threads, so it can't live in the same loop as the server (Server). It's better to use it in another thread or process.
  • The async client (AClient) can live in the same loop as the server (Server), but don't forget to await each methods (which are coroutines in async version)
  • Not fully/concurrency tested. Use at own risk ;-)
  • See tests for examples

BTW, I use it in production since 2018: and no problems at all !!!! (it works as excepted)

Metadata

Release files for redys 0.9.20

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

Source distribution (sdist)

Source distribution for redys 0.9.20
File Size Uploaded Provenance Actions
redys-0.9.20.tar.gz 8.0 kB Without provenance Details for redys-0.9.20.tar.gz

Built distribution (wheel)

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

Total release size: 17.5 kB

Release files / redys-0.9.20.tar.gz

Download URL redys-0.9.20.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
0117097a96596675dd5c3d7e878b2288079fdd05dc1a1d97cbac225f79f21bb1
BLAKE2b-256 checksum
How to use checksums
df7f31d92c44603dbde5d50871b3c064cf7aba2701ecf23f5a12bba505fff367
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.2 Linux/6.2.0-1012-azure

Release files / redys-0.9.20-py3-none-any.whl

Download URL redys-0.9.20-py3-none-any.whl
Size 9.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28446b995a77d759e238e5b8deef6fd7e9d50a3eb796323eff1b2317bb74f5ff
BLAKE2b-256 checksum
How to use checksums
6239ec86648ce43de5f99b3efb01b5516158d46d9233898a89940c850267bae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.10.2 Linux/6.2.0-1012-azure

Security for redys 0.9.20

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