About¶
What is PySpring?¶
PySpring is a Python web framework inspired by Spring Boot. It brings the structured, convention-over-configuration approach of Spring Boot to Python — with type-safe dependency injection, component lifecycle management, and a FastAPI-based web layer.
Why PySpring?¶
Python has excellent web frameworks (FastAPI, Flask, Django), but most of them don't provide a strong opinion on application architecture. As projects grow, developers end up reinventing patterns that Spring Boot solved years ago:
- Dependency injection
- Configuration management
- Component lifecycle
- Event-driven architecture
PySpring brings these patterns to Python, using Python's type system instead of Spring's annotations.
Inspiration¶
PySpring takes direct inspiration from:
- Spring Boot — the overall architecture, DI patterns, and component model
- FastAPI — the web layer, automatic OpenAPI docs, and Pydantic integration
- Pydantic — data validation and configuration modeling
License¶
This project is licensed under the MIT license.