Skip to main content

Tigrbl engine plugin for Redis.

Project description

tigrbl_engine_redis

A Redis engine plugin for tigrbl. This package registers a new engine kind "redis" that tigrbl auto-discovers via the tigrbl.engine entry-point group.

The engine handle and session class in this package are implemented as subclasses of tigrbl's first-class objects (see notes below).

Installation

pip install tigrbl_engine_redis

Usage

Once installed, refer to kind="redis" in your engine spec:

from tigrbl.engine.engine_spec import EngineSpec

spec = EngineSpec(kind="redis", mapping={"url": "redis://localhost:6379/0"})
eng, make_session = spec.build()  # resolved through entry-points
s = make_session()                # returns a RedisSession (TigrblSessionBase subclass)

What this package provides

  • RedisEngine — a thin subclass of tigrbl.engine.Engine to satisfy the "first‑class engine" requirement. It stores connection parameters for inspection; tigrbl keeps it as the provider's engine handle.
  • RedisSession — a concrete subclass of tigrbl.session.TigrblSessionBase that wraps a redis.asyncio.Redis client and implements the async transaction‑aware Tigrbl Session ABC.
  • redis_engine() — the entry‑point builder used by tigrbl to materialize (engine_handle, session_factory).

tigrbl auto‑loads engine plugins on import (idempotent). See: tigrbl.engine.__init__ (calls load_engine_plugins()), and tigrbl.engine.plugins.load_engine_plugins() which enumerates the tigrbl.engine entry‑point group and invokes each package's register() function.

Project details


Download files

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

Source Distribution

tigrbl_engine_redis-0.1.1.dev18.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

tigrbl_engine_redis-0.1.1.dev18-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file tigrbl_engine_redis-0.1.1.dev18.tar.gz.

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev18.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_redis-0.1.1.dev18.tar.gz
Algorithm Hash digest
SHA256 58b40c6c50bf0d9225eb2c345503ec85723e66b8319fa0fa0b5a019c3a6c4c39
MD5 35992200f85cf839ca0d6d9a15f2a20f
BLAKE2b-256 e411fb1d681b3e431e6556064890f57558428f4e89e32ff2dbb8794646ed2b69

See more details on using hashes here.

File details

Details for the file tigrbl_engine_redis-0.1.1.dev18-py3-none-any.whl.

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev18-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for tigrbl_engine_redis-0.1.1.dev18-py3-none-any.whl
Algorithm Hash digest
SHA256 09ce2b1713c561001da8ae5d32140ed049328e58d63402fe0031a4ca667aab8a
MD5 17fcfc4b1f15993f5d5369811d921cd5
BLAKE2b-256 19dcb7c5d74e9785214c09c6fab8332ebd7f715174c5f37795af58a649cfaaf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page