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.

QUICK_REF:
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.

HIGH

Uses __init__.py as barrel exports. Import from the package, not from internal modules.

HIGH
6 non-empty __init__.py files

Tests use pytest. Test utilities in: tests/test_helpers.py.

HIGH
21 test files
+ 1 MORE FINDINGS (MEDIUM CONFIDENCE)

API endpoints use Flask routes. Follow this pattern for new routes.

MED
5 files use Flask routes
GENERATED IN ~3 SECONDS WITH

npx sourcebook init

VIEW ON GITHUB star

FROM_THE_BLOG

RELATED_REPOS