Skip to main content

Dockrion - Deploy and manage AI agents with ease

Project description

Dockrion

PyPI version Python 3.11+ License: Apache 2.0 GitHub

Deploy and manage AI agents with ease.

Dockrion provides a complete toolkit for building, validating, and deploying AI agents powered by LangGraph, LangChain, and other frameworks. Define your agent in a simple YAML file and deploy it anywhere.

🚀 Installation

pip install dockrion

Optional Features

# LangGraph framework support
pip install dockrion[langgraph]

# LangChain framework support
pip install dockrion[langchain]

# Runtime server (FastAPI + Uvicorn)
pip install dockrion[runtime]

# JWT authentication
pip install dockrion[jwt]

# Everything included
pip install dockrion[all]

⚡ Quick Start

1. Initialize a New Project

dockrion init my-agent
cd my-agent

This creates a Dockfile.yaml template:

version: "1.0"

agent:
  name: my-agent
  entrypoint: app.graph:build_agent
  framework: langgraph

io_schema:
  input:
    type: object
    properties:
      messages:
        type: array
  output:
    type: object
    properties:
      response:
        type: string

expose:
  port: 8080

2. Validate Your Configuration

dockrion validate

3. Test Locally

dockrion test --payload '{"messages": [{"role": "user", "content": "Hello!"}]}'

4. Run the Server

dockrion run

Your agent is now accessible at http://localhost:8080.

5. Build & Deploy

# Build Docker image
dockrion build

# Deploy to your infrastructure
dockrion deploy

📦 What's Included

The dockrion package bundles everything you need:

Module Description
dockrion_cli Command-line interface for all operations
dockrion_sdk SDK for building and testing agents
dockrion_runtime FastAPI server for deployed agents
dockrion_schema Dockfile YAML schema validation
dockrion_adapters Framework adapters (LangGraph, LangChain)
dockrion_policy Policy engine for redaction & tool gating
dockrion_telemetry Prometheus metrics & structured logging
dockrion_common Shared utilities and error handling

✨ Features

  • 🚀 Simple Configuration — Define your agent in a declarative YAML Dockfile
  • 🔧 Framework Agnostic — Works with LangGraph, LangChain, and custom frameworks
  • 🛡️ Built-in Safety — Policy engine for PII redaction and tool gating
  • 📊 Observability — Prometheus metrics and structured JSON logging
  • 🔐 Security — JWT authentication and API key support out of the box
  • 🐳 Container Ready — Docker-first deployment with auto-generated Dockerfiles
  • Fast Development — Hot reload and local testing without containers
  • 🧪 Testing Tools — Test your agent with payloads before deployment

🔧 CLI Commands

Command Description
dockrion init <name> Create a new agent project
dockrion validate Validate Dockfile configuration
dockrion test Test agent with sample payloads
dockrion run Run agent server locally
dockrion build Build Docker image
dockrion deploy Deploy to target environment
dockrion logs View agent logs
dockrion doctor Diagnose setup issues
dockrion version Show version information

📚 Documentation

For full documentation, examples, and guides:

🤝 Contributing

We welcome contributions! Please see our GitHub repository for:

  • Issue tracking
  • Pull request guidelines
  • Development setup instructions

👥 Authors

📄 License

Apache-2.0 — 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

dockrion-0.0.2.tar.gz (776.8 kB view details)

Uploaded Source

Built Distribution

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

dockrion-0.0.2-py3-none-any.whl (806.1 kB view details)

Uploaded Python 3

File details

Details for the file dockrion-0.0.2.tar.gz.

File metadata

  • Download URL: dockrion-0.0.2.tar.gz
  • Upload date:
  • Size: 776.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dockrion-0.0.2.tar.gz
Algorithm Hash digest
SHA256 52fc1ea56b52d14429baf61d49042806633c7519aee0d436cd957e0e457e30c8
MD5 dd1c4356c22e2029dbf0552136cd39e3
BLAKE2b-256 6ce84264dfabe948f1666fb043da6b28c2b111448f9acd885eff7bae4efc6508

See more details on using hashes here.

File details

Details for the file dockrion-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: dockrion-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 806.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dockrion-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b686793b4eb0ff918c2c0b685f7cfefa2a3815d9615266a83df0bd443616527c
MD5 358089c2235a9d7d182a34d6258d1609
BLAKE2b-256 c14c3a1a269e1605ea79e2541b76f917b64205febeb275c7016980f1d340930f

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