Chuyển tới nội dung chính

Fluvius Framework

Fluvius is a Python 3.12+ framework for building domain-driven HTTP and MCP backends. Version 1.2 combines CQRS-style domains, SQLAlchemy persistence, FastAPI integration, policy enforcement, query resources, background work, realtime transport, media, forms, and workflows.

Source of truth

This documentation tracks the current fluvius-py source tree. Public imports shown here come from each package's __init__.py; runnable patterns are based on the repository test applications.

Current package map​

PackagePurpose
fluvius.domainDomains, commands, aggregates, events, responses, and state managers
fluvius.dataSQLAlchemy drivers, data managers, schemas, models, and backend queries
fluvius.fastapiApplication factory, auth, domain/query mounts, media, and lifecycle hooks
fluvius.queryDeclarative query resources, filters, reports, and managers
fluvius.workqTaskiq-backed tasks, schedules, clients, and result backends
fluvius.mcpAuthenticated Streamable HTTP MCP mounting
fluvius.transportNATS/MQTT transport and realtime bridges
fluvius.dformForm definitions, document templates, policy, and FastAPI setup
fluvius.navisHuman workflow definitions and execution
fluvius.mediaFilesystem-backed media management
fluvius.casbinPolicy-based authorization

Start here​

  1. Install Fluvius.
  2. Follow the quick start.
  3. Configure the runtime with the configuration guide.
  4. Use the API surface and CLI reference while building.

Fluvius is intentionally modular. Install the core package first, then add the optional queue, transport, or Hatchet dependencies only when the application uses them.