Skip to main content

codex-platform

PyPI version Python CI License

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.6.x
pip install "codex-platform>=0.6.0,<0.7.0"

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

# With ARQ background workers
pip install "codex-platform[arq]>=0.6.0,<0.7.0"

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

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

# Everything
pip install "codex-platform[all]>=0.6.0,<0.7.0"

Requires Python 3.12 or newer. Installs codex-core>=0.5.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
messaging [notifications] Multi-channel notification primitives — SMTP, ARQ/direct delivery, Jinja2 renderer; notifications remains a deprecated compatibility import

Optional agent skill (starting in 0.6.0)

Starting with codex-platform 0.6.0, the package includes an offline coding-agent skill for its Redis, Streams, ARQ, and messaging APIs. Installing the Python package does not change a project. To copy the skill into an existing project, run these commands from the Python environment where codex-platform is installed:

python -m codex_platform.agent_skills install --project /path/to/project
python -m codex_platform.agent_skills status --project /path/to/project
python -m codex_platform.agent_skills update --project /path/to/project
python -m codex_platform.agent_skills delete --project /path/to/project

The installer manages .agents/skills/codex-platform/ and a bounded reference block in the project's root AGENTS.md. It preserves unrelated project guidance, tracks package version and file hashes, and refuses to overwrite locally edited managed files. See the agent skill guide for lifecycle and recovery details.

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, messaging
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).

Metadata

Release files for codex-platform 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codex-platform 0.6.0
File Size Uploaded
codex_platform-0.6.0.tar.gz 209.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codex-platform 0.6.0
File Interpreter ABI Platform
codex_platform-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 289.2 kB

Release files / codex_platform-0.6.0.tar.gz

Download URL codex_platform-0.6.0.tar.gz
Size 209.6 kB
Tags Source
SHA-256 checksum
How to use checksums
78e5cc590b2300e98258a36c9f758fbd8741ea4d098ea67cc774c45625813558
BLAKE2b-256 checksum
How to use checksums
95483ef147c269d9aedab5412f72dfbe73e255ee88caaced9819f648caf2f77d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / codex_platform-0.6.0-py3-none-any.whl

Download URL codex_platform-0.6.0-py3-none-any.whl
Size 79.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0ececf73c53b5987de9d1dcaa757a02bbb3a8bd45ff6ef6bd0dc7e1bb1bbb6a
BLAKE2b-256 checksum
How to use checksums
ebaa69750f9e3c651bfd04cd19fe6316086986edf07a2e7734bb33852181a5ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.6.0 This release

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page