carlos.mesquita acce3f11b2 Merged in release/async (pull request #49)
Release/async

Approved-by: Tiago Ribeiro
2025-01-06 09:11:52 +00:00
2024-10-01 18:12:56 +01:00
2024-07-31 14:56:33 +01:00
2024-10-01 19:31:01 +01:00
2025-01-05 19:04:23 +00:00
2024-10-01 19:31:01 +01:00
2024-12-26 12:31:22 +00:00
2025-01-05 19:04:23 +00:00
2024-11-06 17:37:09 +00:00
2024-10-01 19:31:01 +01:00
2024-12-13 21:30:18 +00:00
2025-01-05 19:04:23 +00:00
2024-12-21 19:27:14 +00:00
2024-12-21 19:27:14 +00:00
2024-11-06 02:07:46 +00:00

Run the app

  1. pip install poetry
  2. poetry install
  3. python app.py

Modules

  • api -> endpoints
  • configs -> app configs and constants
  • controllers -> meant for handling exceptions, transforming data or orchestrate complex use cases with several services, for now mostly just calls services directly
  • dtos -> pydantic models used for receiving data and for validation
  • exceptions -> if custom exceptions are needed to throw in services so they can be handled in the controllers to construct some specific http response
  • helpers -> a bunch of lightweight functions grouped by some kind of logic
  • mappers -> to map complex data
  • middlewares -> classes that are run before executing the endpoint code
  • repositories -> interfaces with data stores
  • services -> all the business logic goes here
  • utils -> loose functions used on one-off occasions

Dependency injection

If you want to add new controllers/services/repositories you will have to change app/configs/dependency_injection.py

Also make sure you have @inject on your endpoint when calling these.

Description
No description provided
Readme 4.3 MiB
Languages
Python 99.7%
Dockerfile 0.3%