Skip to content
GitHubDiscord

Installation

  • Python 3.11 or higher
  • uv (recommended) or pip

Terminal window
# uv (recommended — fast, deterministic)
uv add lexigram
# pip
pip install lexigram

The core lexigram package gives you:

FeatureImportDescription
Applicationlexigram.ApplicationComposition root with lifecycle management
Providerlexigram.ProviderTwo-phase register / boot service wiring
Containerlexigram.ContainerIoC container — singleton, scoped, transient bindings
DI Decoratorslexigram.singleton, lexigram.injectable@singleton, @injectable, @scoped, @transient
LexigramConfiglexigram.LexigramConfigYAML + env vars + profile overlays
Resultlexigram.Result, lexigram.Ok, lexigram.ErrResult pattern with unwrap, map, and_then
Modulelexigram.Module@module decorator with import/export boundaries
Contractslexigram_contractsBase protocols (auto-installed)

Install only what you need. Every package depends only on lexigram (core) and lexigram-contracts.

Terminal window
uv add lexigram-web

Starlette-based web layer — controllers, routing, middleware, OpenAPI docs, CORS, CSRF, rate limiting.

Terminal window
uv add lexigram-sql

Async ORM, migrations, repository pattern.

Terminal window
uv add lexigram-ai-agents

Agent framework with tools, strategies (ReAct, PlanAndExecute), and governance.


CategoryPackages
Corelexigram, lexigram-contracts
Web & APIlexigram-web, lexigram-http, lexigram-graphql
Securitylexigram-auth, lexigram-security
Data & Storagelexigram-sql, lexigram-cache, lexigram-storage, lexigram-search
Events & Messaginglexigram-events, lexigram-queue, lexigram-notification
AIlexigram-ai, lexigram-ai-llm, lexigram-ai-rag, lexigram-ai-agents, lexigram-ai-memory
Resiliencelexigram-resilience, lexigram-idempotency
Observabilitylexigram-monitor, lexigram-ai-observability
Tasks & Workflowlexigram-tasks, lexigram-workflow
Utilitieslexigram-testing, lexigram-cli, lexigram-features

Terminal window
# CLI — project scaffolding, code generation, dev server
uv add lexigram-cli
# Testing — fakes, test containers, compliance suites
uv add --dev lexigram-testing

Terminal window
python -c "import lexigram; print(lexigram.__version__)"