Modular async infrastructure (Redis, Streams, ARQ, Notifications) built for Codex, designed for independent use.
Project description
codex-platform
codex-platform is a modular, async infrastructure library. Originally built as the foundation for the Codex ecosystem, it is designed from the ground up to be completely independent. You can use it in any Python project to get a typed Redis abstraction, a Redis Streams event bus, structured ARQ background workers, or a multi-channel notification engine. Every component is completely independent and can be installed as a separate extra.
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 background workers
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.
Development
uv sync --extra dev
uv run pytest
uv run mypy src/
uv run pre-commit run --all-files
uv build --no-sources
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")
Modules
| Module | Extra | Description |
|---|---|---|
redis_service |
[redis] |
Typed async Redis abstraction — Hash, String, List, Set, ZSet, JSON, Pipeline |
streams |
[streams] |
Redis Streams producer/consumer with consumer groups, retry, and DLQ |
workers.arq |
[arq] |
ARQ worker base infrastructure — health probes, DLQ retry, CORE_FUNCTIONS |
notifications |
[notifications] |
Multi-channel notification engine — SMTP, ARQ/Direct delivery, Jinja2 renderer |
Documentation
Full docs with architecture, API reference, and data flow diagrams:
codexdlc.github.io/codex-platform
Part of the Codex ecosystem
| Package | Role |
|---|---|
| codex-core | Foundation — immutable DTOs, PII masking, env settings |
| codex-platform | Infrastructure — Redis, Streams, ARQ workers, Notifications |
| codex-ai | LLM layer — unified async interface for OpenAI, Gemini, Anthropic |
| codex-services | Business logic — Booking engine, CRM, Calendar |
Each library is fully standalone — install only what your project needs. Together they form the backbone of codex-bot (Telegram AI-agent infrastructure built on aiogram) and codex-django (Django integration layer).
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codex_platform-0.4.0.tar.gz.
File metadata
- Download URL: codex_platform-0.4.0.tar.gz
- Upload date:
- Size: 163.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3028ad1caeeade56ad2014edc4b5c3f41516e50fa25eceaac7cf51882cf1866
|
|
| MD5 |
88c75c685860af9a2531aca4f8523aef
|
|
| BLAKE2b-256 |
0b3433053c27be91c0f718a57195a67149b276b46a031ec130951ec1a8f405c9
|
Provenance
The following attestation bundles were made for codex_platform-0.4.0.tar.gz:
Publisher:
publish.yml on CodexDLC/codex-platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_platform-0.4.0.tar.gz -
Subject digest:
f3028ad1caeeade56ad2014edc4b5c3f41516e50fa25eceaac7cf51882cf1866 - Sigstore transparency entry: 1359150961
- Sigstore integration time:
-
Permalink:
CodexDLC/codex-platform@439302443e6f370b6bd343d0ff2305be6f3190fe -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/CodexDLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@439302443e6f370b6bd343d0ff2305be6f3190fe -
Trigger Event:
push
-
Statement type:
File details
Details for the file codex_platform-0.4.0-py3-none-any.whl.
File metadata
- Download URL: codex_platform-0.4.0-py3-none-any.whl
- Upload date:
- Size: 55.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df8dda992b2d2fe7eb110efd4732005424d069ddb09ae5524bfe58436f01f31f
|
|
| MD5 |
d6d95a70a3c470b3cb43b47ae9aa7628
|
|
| BLAKE2b-256 |
fb3c003c76047c6fb8b37811561feb194199e2cc94c8345c72d0a56bfbc66bd5
|
Provenance
The following attestation bundles were made for codex_platform-0.4.0-py3-none-any.whl:
Publisher:
publish.yml on CodexDLC/codex-platform
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_platform-0.4.0-py3-none-any.whl -
Subject digest:
df8dda992b2d2fe7eb110efd4732005424d069ddb09ae5524bfe58436f01f31f - Sigstore transparency entry: 1359150969
- Sigstore integration time:
-
Permalink:
CodexDLC/codex-platform@439302443e6f370b6bd343d0ff2305be6f3190fe -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/CodexDLC
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@439302443e6f370b6bd343d0ff2305be6f3190fe -
Trigger Event:
push
-
Statement type: