Skip to content

codex-platform

Infrastructure library for the Codex WaaS toolkit. Provides background task workers (ARQ), Redis service abstraction, Redis Streams event bus, and a multi-channel notification engine.

Built to be dropped into any Python 3.12+ service as a set of composable, independently installable extras.

Install

# codex-platform 0.3.x
pip install "codex-platform>=0.3.0,<0.4.0"

# With Redis support
pip install "codex-platform[redis]>=0.3.0,<0.4.0"

# With ARQ worker support
pip install "codex-platform[arq]>=0.3.0,<0.4.0"

# With async SMTP notifications
pip install "codex-platform[notifications]>=0.3.0,<0.4.0"

# Redis Streams
pip install "codex-platform[streams]>=0.3.0,<0.4.0"

# Everything
pip install "codex-platform[all]>=0.3.0,<0.4.0"

Requires Python 3.12 or newer. Installs codex-core>=0.3.0,<0.10.0 automatically as a dependency.

Quick Start

from redis.asyncio import Redis
from codex_platform.redis_service import RedisService

redis = Redis(host="localhost", port=6379)
service = RedisService(redis)

await service.hash.set_json("user:42", "profile", {"name": "Alex"})
data = await service.hash.get_json("user:42", "profile")
Section Description
Guide (EN) Architecture overviews and data-flow pages in English
Руководство (RU) Архитектурные страницы и схемы на русском
API Reference English-only API reference generated from docstrings
Changelog Version history