Python Classroom notes 19/Aug/2026

Dependencies in fast api

Packages in python

  • In python file becomes a module and package is a folder with a file called as __init__.py

  • Prompt

Explain different ways of creating packages and subpackages and guide me with good practices, examples about relative and absolute imports, Ensure all the project creations are from uv

Lets build a simple hotel rooms reservation service

  • Refer Here for basic scaffolding

  • For now this implmentation is for a specific hotel

  • To show any thing via api we deal with schemas (pydantic models)

  • Exercise: Implement a simple api rotuer in v1 which returns 5 rooms

    • main.py (fastapi application object => router => rom => schmas)

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