A Flask web application for quick sweater planning calculations.
The UI collects:
- Stitch gauge (stitches per 4 inches)
- Row gauge (rows per 4 inches)
- Neck circumference
- Yoke depth
- Arm circumference
- Chest circumference
- Desired ease
- Stitches per inch = stitch gauge / 4
- Rows per inch = row gauge / 4
- Total chest stitches = (chest circumference + desired ease) / stitch gauge
- Armhole stitches = (arm circumference + desired ease) / rows per inch
The app also shows rounded stitch counts for convenience.
-
Create and activate a virtual environment:
python3 -m venv .venv source .venv/bin/activate -
Install dependencies:
pip install -r requirements.txt
-
Start the app:
flask --app app run --debug
-
Open the local URL shown in your terminal.
pytestGitHub Actions runs the test suite on every push using .github/workflows/tests.yml.