Skip to content

Welcome to the Athomic

Build Status Coverage License Python Version

Athomic is an opinionated, production-ready engine for building resilient, observable, and scalable microservices in Python. It provides a robust foundation—the Athomic Layer—that handles cross-cutting concerns, allowing developers to focus purely on business logic.

Our philosophy is grounded in battle-tested software engineering principles like SOLID, Single Responsibility (SRP), and Dependency Injection (DI), ensuring that applications built on this engine are maintainable, scalable, and easy to test.


Getting Started

Follow these steps to get a local development environment up and running.

Prerequisites

  • Docker & Docker Compose
  • Python 3.11+
  • Poetry

1. Clone the Repository

git clone https://github.com/guandaline/athomic.git
cd athomic

2. Start Infrastructure Services

This command will start all necessary services defined in docker-compose.yml, such as MongoDB, Redis, and Vault.

docker-compose up -d

3. Install Dependencies

Install the project's Python dependencies using Poetry.

poetry install

4. Run the Application

Execute the application using uvicorn. The server will start on http://127.0.0.1:8000.

poetry run uvicorn nala.api.main:app --reload

You can now access the API documentation at http://127.0.0.1:8000/docs.


Explore the Documentation

Athomic Layer Modules

Core & Lifecycle

Configuration & Context

Data & Persistence

Artificial Intelligence

  • AI Agents: Framework for building ReAct agents with tool execution.
  • Workflow Orchestration: Graph-based execution engine for complex, cyclic AI workflows (loops, conditional branching).
  • Cognitive Intent Engine: Service for user intent classification and query understanding before execution.
  • Agent Persistence: State management, checkpointing, and fault tolerance for agents.
  • AI Sandbox & Code Interpreter: Secure, isolated execution environment for untrusted code generated by LLMs.
  • RAG Pipeline: Stream-first architecture for Retrieval-Augmented Generation.
  • Semantic Cache: Optimization layer using vector similarity to cache LLM responses.
  • LLM Abstraction: Unified interface for providers (OpenAI, Vertex) with streaming support.
  • AI Governance: Guardrails for PII sanitization and policy enforcement.
  • Semantic Memory: Service for managing embeddings and vector storage.
  • Embeddings: Text-to-vector transformation services.
  • Document Ingestion: ETL pipelines for processing documents into knowledge.
  • QA & Evaluation: Testing harness for evaluating RAG/Agent quality (Faithfulness, Relevancy).

Security

Observability

Cross-Cutting Concerns

  • Serializer: Pluggable serializers (JSON, Protobuf) for data conversion.
  • Payload Processing Pipeline: A "Pipes and Filters" system for composing transformations like encryption and compression.
  • Notifications: Resiliently send emails via SMTP or other providers.
  • Internal Event Bus: In-process Pub/Sub for decoupling internal components.
  • Resilient HTTP Client: A factory for creating pre-configured, resilient clients.
  • Smart Router: Dynamic, resilient, and domain-agnostic execution routing engine with predictive scoring and fallback chains.

Resilience Patterns