Skip to main content

ONEX Infrastructure - Service integration and database infrastructure tools

Project description

ONEX Infrastructure

License: MIT Python 3.12+ Code style: ruff Type checked: mypy Pre-commit Framework: Infrastructure

Production infrastructure services for the ONEX execution layer. Handlers, adapters, and runtime services for PostgreSQL, Kafka, Consul, Vault, and Redis.

What is This?

This repository provides the infrastructure layer for ONEX-based systems. While omnibase_core defines the execution protocol and node archetypes, this package provides:

  • Handlers for external services (database, HTTP, messaging)
  • Adapters wrapping infrastructure clients
  • Event bus abstractions for Kafka/Redpanda
  • Runtime services deployable via Docker

Built on omnibase-core ^0.8.0 and omnibase-spi ^0.5.0.

Quick Start

# Clone the repository
git clone https://github.com/OmniNode-ai/omnibase_infra.git
cd omnibase_infra

# Start infrastructure services with Docker
cd docker
cp .env.example .env
# Edit .env - set POSTGRES_PASSWORD (required for Docker fallback)
# Set OMNIBASE_INFRA_DB_URL (required for CLI/scripts; recommended for Docker)

docker compose -f docker-compose.infra.yml up -d

# Verify services are running
docker compose -f docker-compose.infra.yml ps

Docker Services

Self-contained infrastructure via docker-compose.infra.yml:

Service Profile Port Description
PostgreSQL default 5436 Persistence (always starts)
Redpanda default 29092 Event bus (always starts)
Valkey default 16379 Caching (always starts)
Consul consul 28500 Service discovery (optional)
Infisical secrets 8880 Secrets management (optional)
Runtime runtime 8085 ONEX runtime services (optional)

Profiles:

# Infrastructure only (default)
docker compose -f docker-compose.infra.yml up -d

# With service discovery
docker compose -f docker-compose.infra.yml --profile consul up -d

# With secrets management
docker compose -f docker-compose.infra.yml --profile secrets up -d

# Everything
docker compose -f docker-compose.infra.yml --profile full up -d

Configure via .env file - see docker/README.md for details.

Documentation

I want to... Go to...
Get started quickly Quick Start Guide
Understand the architecture Architecture Overview
Deploy with Docker Docker Guide
See a complete example Registration Walkthrough
Write a contract Contract Reference
Find implementation patterns Pattern Documentation
Read coding standards CLAUDE.md

Full documentation: docs/index.md

Repository Structure

src/omnibase_infra/
├── handlers/          # Request/message handlers
├── event_bus/         # Kafka/Redpanda abstractions
├── clients/           # Service clients
├── models/            # Pydantic models
├── nodes/             # ONEX nodes (Effect, Compute, Reducer, Orchestrator)
├── errors/            # Error hierarchy
├── mixins/            # Reusable behaviors
└── enums/             # Centralized enums

Development

# Install dependencies
uv sync

# Run tests
uv run pytest

# Type checking
uv run mypy src/omnibase_infra/

# Format code
uv run ruff format .
uv run ruff check --fix .

Pre-commit Hooks Setup

Run once after cloning:

uv run pre-commit install
uv run pre-commit install --hook-type pre-push

Contributing

See CONTRIBUTING.md for commit conventions and PR guidelines.

License

MIT License - see LICENSE for details.

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

omnibase_infra-0.9.0.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

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

omnibase_infra-0.9.0-py3-none-any.whl (3.3 MB view details)

Uploaded Python 3

File details

Details for the file omnibase_infra-0.9.0.tar.gz.

File metadata

  • Download URL: omnibase_infra-0.9.0.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Darwin/24.6.0

File hashes

Hashes for omnibase_infra-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e86151d6e6f8e5352731839be77e43d6d1ac59d5fdc1de8741816f585b92b604
MD5 72986a76b53481e0f2664a0f654d4e7f
BLAKE2b-256 72e9e50066dc6447a43a1d2b55c1805dc77ec85fb5b180d0a701effe725f9f7d

See more details on using hashes here.

File details

Details for the file omnibase_infra-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: omnibase_infra-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 3.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.12 Darwin/24.6.0

File hashes

Hashes for omnibase_infra-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8ae864f10ad5472af8b7abb0956eb4bd880b9c84819f1055b086176889fed13
MD5 ce8e24aaf3637fd68465ad496ac28bb3
BLAKE2b-256 bb98ffa42e8f012ffd01bd886e94d27c8ba1fdc8e9fde10e64d0059aef7256de

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