Complete examples showing how to use all 16 Python Web Toolkit libraries.
New to these libraries? Start here:
Quick Start Guide - 5 essential examples covering the most common workflows
Building APIs
- Example 1: FastAPI Application - Basic API with repositories, validation, and error handling
- Example 7: Complete REST API - REST API with response models and pagination
Data Patterns
- Example 2: Domain Model with Specification Pattern - Composable business rules
- Example 3: Data Sanitization Pipeline - PostgreSQL-safe data processing
Utilities
- Example 4: String Utilities - Text operations and transformations
- Example 5: DateTime Operations - Timezone-aware date/time handling
Error Handling
- Example 6: Exception Handling Hierarchy - Structured exception management
Building APIs
- Example 8: Complete FastAPI Setup with Middleware - CORS, error handlers, lifespan, health checks
Operations
- Example 9: Structured Logging Configuration - Development, production, and testing logging presets
Data Patterns
- Example 10: SQLAlchemy Async Session Management - Engine, sessions, FastAPI dependencies
- Example 13: DTO Auto-Mapping - Automatic object-to-DTO transformations
Application Patterns
- Example 11: CQRS Pattern with Commands & Queries - Separated read/write operations
- Example 12: Mediator with Pipeline Behaviors - Request pipeline with logging, timing, validation
Messaging Patterns
- Example 14: Transactional Outbox Pattern - Reliable event publishing
Complete Integration
- Example 15: Complete Backend Application - Full backend integrating all 16 libraries
pip install python-app-exceptions>=0.1.0
pip install pydantic-response-models>=0.1.0
pip install sqlalchemy-async-repositories>=0.1.0
pip install python-technical-primitives>=0.1.0
pip install postgres-data-sanitizers>=0.1.0
pip install python-input-validation>=0.1.0pip install fastapi-middleware-toolkit>=0.1.0
pip install fastapi-config-patterns>=0.1.0
pip install sqlalchemy-async-session-factory>=0.1.0
pip install python-structlog-config>=0.1.0
pip install python-infrastructure-exceptions>=0.1.0
pip install python-dto-mappers>=0.1.0
pip install python-cqrs-core>=0.1.0
pip install gridflow-python-mediator>=0.1.0
pip install python-cqrs-dispatcher>=0.1.0
pip install python-outbox-core>=0.1.0All libraries are framework-agnostic (except FastAPI-specific ones) and work with FastAPI, Flask, Django, or any Python web framework. They follow SOLID principles, maintain strict file size limits (< 120 lines), and are production-tested from the GridFlow project.