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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev5.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.dev5.tar.gz
Algorithm Hash digest
SHA256 7cb0bbab59cfab8d051f85291b85c078bf37567b49f1b12aa6832793c7f15d35
MD5 6f8acd82e1b84201299eeac89907a483
BLAKE2b-256 79707b713648aed85b7792116a714208efdc0ad758dad599ea6d4bbfb2735739

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev5-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","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.dev5-py3-none-any.whl
Algorithm Hash digest
SHA256 c08628950bbc7bb792b07c8b9fce0a41b8823ec19cd1dbe842632b879c1525f6
MD5 9b50578e03b03c0469b9701e6d2ff102
BLAKE2b-256 5aad5532da6c9c6dd28420809f8dc51add07cdc0ec3f0aa3fc8d27f643740cf1

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