Skip to main content

Modular async infrastructure (Redis, Streams, ARQ, Notifications) built for Codex, designed for independent use.

Project description

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.2.x
pip install "codex-platform>=0.2.0,<0.3.0"

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

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

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

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

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

Requires Python 3.12 or newer. Installs codex-core>=0.2.0,<0.3.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

codex_platform-0.2.0.tar.gz (153.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_platform-0.2.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file codex_platform-0.2.0.tar.gz.

File metadata

  • Download URL: codex_platform-0.2.0.tar.gz
  • Upload date:
  • Size: 153.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_platform-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21ba014af2f05664d23e43a56d674bd3f65be1121ffc02289a4df21918e2bcc2
MD5 13aba04a6d443a033e15c52072f0c6d6
BLAKE2b-256 43127a9a1c37a5222acc043eeff80ef3044d544984fca76912f6578a9e1f07f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_platform-0.2.0.tar.gz:

Publisher: publish.yml on CodexDLC/codex-platform

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codex_platform-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: codex_platform-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_platform-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8a23b8afc608ecda2f57c5db538c56fec44b25960a04585affc14474227007f
MD5 f83c1a6e9cbce20e9d064634ed9239ad
BLAKE2b-256 7c37503e013174c42246f0764e6af16e2f20946b41d104bfd883c3c9ac38fff2

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_platform-0.2.0-py3-none-any.whl:

Publisher: publish.yml on CodexDLC/codex-platform

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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