Python Classroom notes 05/Sep/2026

WSGI and ASGI

WSGI

Preview

ASGI

Preview

Creating a simple api

  • Purpose: which returns flats on rent based on filters

    • location
    • type
  • To acheive this lets make little steps

Step 1: Create a standard folder structure

  • Figure out what is standard root (project name)
  • Create a repository in github (private) with same name
  • clone the repository into local
  • we need to have a folder structure with main.py

  • folder-Name: rentals-api

  • project-name: rentals_api

  • Template for scaffolding Refer Here

  • Refer Here for rentals-api created with scaffolding

  • Exercise: Following this Refer Here create a api with follwing

    • get all
    • get by id
    • create
    • update
    • delete
  • Make a schema change and create a alembic migration
  • Ensure everything is async.
  • For every change run
lint checks
formatting
unit tests

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading