athena-labz / orgs_backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

orgs_backend

API

To run the api, run

$ uvicorn main:app --reload

Tortoise - ORM

To initialize the database, run:

$ python3 initialize_database.py

To convert ORM model to pydantic, you can use

await Model_Pydantic.from_tortoise_orm(model_obj) # For single values
await Model_Pydantic.from_queryset(Model_Obj.all()) # For lists

About


Languages

Language:Python 96.1%Language:Jupyter Notebook 3.5%Language:Dockerfile 0.4%