fastapi / fastapi
FastAPI framework, high performance, easy to learn, fast to code, ready for production.
FastAPI keeps the importable package at the repository root rather than under src, and gives unusual prominence to documentation: the docs tree is multilingual and its code examples are executed as part of the test suite, so documentation cannot drift from behaviour.
- Documentation examples stored as real, importable modules rather than inline snippets.
- Translations organised as parallel language trees under docs.
- OpenAPI generation kept inside the core package rather than as a plugin.
Notable Directories
/fastapiThe framework package: routing, dependency injection, parameter declaration, and OpenAPI generation.
/docs_srcRunnable example applications referenced by the documentation and exercised by tests.
/docsDocumentation content, subdivided per translated language.
/testsThe pytest suite, including tests that execute the documentation examples directly.
Build Your Own Ecosystem
Learn from fastapi's structure and craft your own software scaffolding.