loom-kernel documentation¶
Framework-agnostic toolkit to build backend applications with typed use cases, repository contracts, and transport adapters.
Official hosted documentation: loom-py.readthedocs.io. Companion demo application: dummy-loom.
Overview
Getting Started
REST
- Auto-CRUD
- Use-case DSL
- Anatomy of a use case
- Commands
- F — typed field reference
- Input markers
- Agent marker — reaching a named agent
- What the Agent() marker refuses
- Mcp marker — reaching an MCP server directly
- What the Mcp() marker refuses
- Compute — derive and normalise fields
- Rule — validate before execute
- Predicate composition
- Full use case example — update with all DSL features
- Declaring use cases on a REST interface
- Declaring routes in configuration (
app.rest.interfaces) - Cross-use-case calls with ApplicationInvoker
- Execution lifecycle
- DSL quick-reference
- Caller identity and authorization
- Celery worker
- SQL API (ClickHouse)
- Persistence backends
- Cache
- Examples repo
- REST Testing
ETL
- ETL
- Install
- Minimal pipeline
- File source with JSON payload + final CSV report
- File aliases (FileLocator)
- YAML config (Polars path)
- Write modes
- Running only selected stages
- Spark runtime
- Testing ETL steps
- File aliases (FileLocator)
- Loading config from cloud storage
- Pluggable config resolvers
- End-to-end example
- API reference
- ETL Testing
- ETL Examples