Dependencies in fast api
- refer here for 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)
