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.dev22.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.dev22-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev22.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.dev22.tar.gz
Algorithm Hash digest
SHA256 f7b14602cb76b9b08d77c59ec3074e21c35ea769866615bed89a8833a3ad8b1d
MD5 e0eb3463ebd83a66ff88c7c11bfe9e1f
BLAKE2b-256 3ea6dbf0a28158317180a9d96bfd4bb0048209b06e2a36a6af73cc069f3f2575

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev22-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.dev22-py3-none-any.whl
Algorithm Hash digest
SHA256 0f8d1e523f14eca215b6ab41baabf637f84adc581dde50a7c5c9af73efc95843
MD5 d2dbe3e1603714c99d398706c2883ab3
BLAKE2b-256 e34a144bf878b76d9baa71d20570675acfd840d6576a6ac3df0d69c11510c39c

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