Skip to main content
High PerformanceAI FriendlyProduction Ready

Fluvius Framework

Domain-Driven APIs with Python

Build scalable, maintainable backend applications with CQRS, event sourcing, and seamless FastAPI integration. Production-ready framework designed for modern Python applications.

Event Sourcing
CQRS Pattern
FastAPI Ready
AI Friendly
Production Ready
Enterprise Grade
Intelligent
AI-Powered
Async First
High Performance
Modular
Flexible Architecture

How It Works

Fluvius Framework follows Domain-Driven Design principles with CQRS and Event Sourcing

Commands

Define commands that represent user intentions to change state

create_user, activate_account, transfer_funds

Events

Events are automatically generated and stored as immutable facts

user-created, account-activated, funds-transferred

State

Query current state through optimized read models

fetch, find, query with filters

Complete Event Sourcing

Every state change is recorded as an event. Replay events to rebuild state, audit changes, and enable time travel debugging.

  • Immutable event log
  • Automatic event generation
  • Event replay and time travel
Learn More →

Domain-Driven. Event-Sourced. Production-Ready.

Build scalable backends with Python and modern architecture patterns. Get started in minutes with our intuitive API.

Explorer
USER_DOMAIN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import sqlalchemy as sa
from fluvius.data import SqlaDataSchema, SqlaDriver, DataAccessManager
from sqlalchemy.dialects import postgresql as pg
from fluvius.data import UUID_GENR
class UserConnector(SqlaDriver):
__db_dsn__ = "postgresql+asyncpg://postgres:postgres@localhost:5432/postgres"
class User(UserConnector.__data_schema_base__):
__tablename__ = "user"
_id = sa.Column(pg.UUID, primary_key=True, default=UUID_GENR)
name = sa.Column(sa.String)
_created = sa.Column(sa.DateTime(timezone=True))
_updated = sa.Column(sa.DateTime(timezone=True))
_etag = sa.Column(sa.String)
_deleted = sa.Column(sa.DateTime(timezone=True))
_creator = sa.Column(pg.UUID)
_updater = sa.Column(pg.UUID)
_realm = sa.Column(sa.String)
class FluviusAccessManager(DataAccessManager):
__connector__ = UserConnector
__automodel__ = True

Fast Development

Define your domain model and get REST APIs, event sourcing, and state management automatically

Type Safe

Full type safety with Pydantic models and Python type hints. Catch errors at development time

Scalable

CQRS pattern separates reads and writes. Scale your read and write operations independently

Perfect For

Fluvius Framework powers a wide range of applications across industries

Enterprise APIs

Build scalable REST APIs for enterprise applications with built-in authentication, authorization, and audit trails.

Microservices

Create domain-driven microservices with event sourcing for distributed systems and event-driven architectures.

SaaS Platforms

Develop multi-tenant SaaS applications with flexible data backends and background job processing.

Financial Systems

Build secure financial applications with immutable event logs, audit trails, and transaction management.

Why Developers Choose Fluvius

Built with developer experience and production requirements in mind

Rapid Development

Get from concept to production faster with automatic API generation and built-in patterns

Production Ready

Built-in authentication, authorization, logging, and monitoring for enterprise applications

Type Safety

Full type safety with Pydantic models and Python type hints. Catch errors early

Flexible Architecture

Modular design lets you use only what you need. Easy to extend and customize

Event Sourcing

Complete audit trail, time travel debugging, and event replay capabilities

Multiple Databases

Support for PostgreSQL, MongoDB, SQLite. Switch backends without code changes

Async First

Built on async/await for high performance and scalability

Great Documentation

Comprehensive docs, examples, and API references to get you started quickly

Ready to Build Something Amazing?

Start building domain-driven, event-sourced applications with Fluvius Framework today

Join developers building scalable Python backends with modern architecture patterns

Install in Minutes

pip install fluvius-py

Comprehensive Docs

Examples, guides, and API reference

Community Support

GitHub discussions and issues