Python
235 FILES
4 FINDINGS
HOW FLASK
ACTUALLY WORKS
The Python micro framework for building web applications. Conventions, patterns, and architecture extracted from the pallets/flask repository by sourcebook.
Routing: Flask routes
Testing: pytest. Test utilities in: tests/test_helpers.py.
WHAT_MATTERS
-
→
Uses Flask routes for routing — follow this pattern, don't add REST routes directly
KEY_FINDINGS
Tests live in a separate test/ directory, mirroring src/ structure. New tests go there, not next to source files.
HIGHUses __init__.py as barrel exports. Import from the package, not from internal modules.
HIGH6 non-empty __init__.py files
Tests use pytest. Test utilities in: tests/test_helpers.py.
HIGH21 test files
+ 1 MORE FINDINGS (MEDIUM CONFIDENCE)
API endpoints use Flask routes. Follow this pattern for new routes.
MED5 files use Flask routes