Skip to main content

database_wrapper_redis

Part of the database_wrapper package.

This python package is a database wrapper for Redis.

Installation

pip install database_wrapper[redis]

Usage

from database_wrapper_redis import RedisDBWithPoolAsync, RedisDB

db = RedisDBWithPoolAsync({
    "hostname": "localhost",
    "port": 3306,
    "username": "root",
    "password": "your_password",
    "database": 0
})
await db.open()
try:
    async with db as redis_con:
        await redis_con.set("key", "value")
        value = await redis_con.get("key")
        print(value)  # Output: b'value'

finally:
    await db.close()

Notes

No wrapper at this time, as redis is just a key-value store.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

database_wrapper_redis-0.3.146.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

database_wrapper_redis-0.3.146-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file database_wrapper_redis-0.3.146.tar.gz.

File metadata

  • Download URL: database_wrapper_redis-0.3.146.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for database_wrapper_redis-0.3.146.tar.gz
Algorithm Hash digest
SHA256 5a625349262c23f27e952b553dbc79c5fade05f437ddfc55d74ac079de31475f
MD5 a4542774c7ea9cc58f74f5d35b3a9909
BLAKE2b-256 05b6627db1899e0fe60e8f0576f983b7add4f56f973653898b556dde4240c806

See more details on using hashes here.

Provenance

The following attestation bundles were made for database_wrapper_redis-0.3.146.tar.gz:

Publisher: master.yml on 4Apps/py_database_wrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file database_wrapper_redis-0.3.146-py3-none-any.whl.

File metadata

File hashes

Hashes for database_wrapper_redis-0.3.146-py3-none-any.whl
Algorithm Hash digest
SHA256 1dc88faa60e6eca9a6dadd693aa618cd5472ffeecc7ccd41c738e71b46530cef
MD5 a47ec212dab033fe86e96a4e3c771766
BLAKE2b-256 3c8354d3ca551c1b1550ed8d4167b0d2278fc9f93d88334099ca50b74f5716ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for database_wrapper_redis-0.3.146-py3-none-any.whl:

Publisher: master.yml on 4Apps/py_database_wrapper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.3.146 This release

2 files

0.2.38

2 files

0.2.36

2 files

0.2.33

2 files

0.2.32

2 files

0.2.31

2 files

0.2.30

2 files

0.2.27

2 files

0.2.26

2 files

0.2.24

2 files

0.2.23

2 files

0.2.17

2 files

0.2.16

2 files

0.2.14

2 files

0.2.13

2 files

0.2.12

2 files

0.2.9

2 files

0.2.7

2 files

0.2.6

2 files

0.2.5

2 files

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