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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev15.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.dev15.tar.gz
Algorithm Hash digest
SHA256 448427589e41c5376235efefafa3385286babd511c80354b85f5e906e90a1d41
MD5 2810973ab875c8173655a36a83bcbc51
BLAKE2b-256 2fdf970fc1c3451fb9719592550ad21ed4010594e4f76ef0ff2ca22aac1d7a6e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tigrbl_engine_redis-0.1.1.dev15-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.dev15-py3-none-any.whl
Algorithm Hash digest
SHA256 a3ab5d0d5e4d04d070b4f3335b5b380fafced338e3ace4fef7326f7c62a60d90
MD5 a0e51be4cf034c015924fd7423b0a592
BLAKE2b-256 f72cae80b53ac57c046e113cecd1802cbaa753cbd3797465d256d40d28faee23

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