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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev6.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.dev6.tar.gz
Algorithm Hash digest
SHA256 0f56ea405313c670b6094ba8292fdee1f7e69e76ed2cf07f439b274fc873bcc2
MD5 f7f9d49ad356e9e4332c11de3eaa6cc3
BLAKE2b-256 dfb22c16ebeb94684fdeab24f8ebc1b5b458d4db44d6a533f09df6308098457c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev6-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.8 {"installer":{"name":"uv","version":"0.10.8","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.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 172556e1ab131618aae0dec2966866e53e9a39742734827fd9d6364d759154ca
MD5 b3542b407012bef3d4a7b89be99da712
BLAKE2b-256 4d94d203f1bff849845d030722b7dc5289dafe66d25e80a331fb85b2d34b3c30

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