Week 16 • Thursday

Block 157: Deployment Concepts (Intro)

Understand how Python projects are deployed in practice.

Concepts

Code Examples

See exercise below.

Exercise

Run your Flask/FastAPI app with uvicorn instead of the dev server. Test that it works. Add a .env file for configuration (API keys, database path). Load with python-dotenv.

Homework

Research Docker and write a 150-word summary of: what it is, why it's useful for Python projects, and one limitation.