Examples
Runnable examples from this version of FastSprout, organized by chapter. Each Result block is generated by running its Python source.
Core
- 1. Typed Object
- 1. Typed Dataclass
- 2. Typed Pydantic Dataclass
- 3. Base Schema
- 2. Fields
- 1. Field Ref ORM
- 2. Field Assignment
- 3. Action
- 1. Base Action
- 2. Action Sequence
- 3. Action Iterable
- 3. Action Iterator
- 4. DTO
- 1. Visibility
- 2. SQL
- 3. Extra Fields
Actions
- 1. Action
- 1. Class
- 2. Class With Depends
- 3. Function
- 4. Function With Depends
- 2. Action Group
- 1. Service
- 2. CRUD Service
- 1. Standard
- 2. Standard DTO
- 3. Update And Patch
- 4. Custom Write Schemas
- 5. Schema States
- 6. Bulk Operations
- 7. Bulk Dependencies
- 8. Chunk Replacement
- 9. Query Reads
- 10. Query Writes
- 11. Upserts
- 12. Joins
- 13. Mapping
- 14. Nested Entities
- 15. Query Pagination
- 16. Reusable Query
- 17. Operation Controls
- 18. Explicit Dtos
- 19. Exists
- 20. Validation
- 21. Operation Dependencies
- 22. Singleton Dependencies
- 23. Cursor Pagination
- 24. Composite Service
- 25. Singleton Composite Service
- 26. Field Predicate Writes
- 3. Context
- 1. Dependency
- 2. Injection
- 3. Custom Vars
- 4. Dependency Chain
- 4. Workflow
- 1. Linear
- 2. Graph
- 3. Branch
- 4. State
- 5. Services
- 6. Nested
- 7. Nullable
- 8. Sequence
- 9. Iterable
- 10. Iterator
Data
- 1. DataR
- 1. Smart Router
- 2. Events Subscriber
- 3. Dependencies
- 2. Stream
- 1. Joined Stream
- 2. Routed Join
- 3. Nested Joins
- 4. Query Conditions
- 5. Query Joins
- 6. Sqlalchemy Query
- 7. Mixed Join Stages
Events
- 1. Decorators
- 1. Pub Pusher
- 2. Sub Handler
- 3. Pub Sub Handler
- 2. Advance Decorators
- 1. Events Group
- 1. Schedule Event
- 3. Bus
- 1. Middleware
- 2. Custom Event Bus
- 3. Result Schema
- 4. Brokers
- 1. In Memory
- 2. Async Queue
Testing
- 1. Core
- 1. Function Steps
- 2. Method Steps
- 3. Properties
- 2. Data
- 1. SQLite
- 2. PostgreSQL
- 3. MySQL
- 4. Oracle
- 3. Events
- 1. RabbitMQ
- 2. In Memory
- 3. Async Queue
- 4. NATS
- 5. Kafka