a fastapi Build tool
-
core/database.py SQLALCHEMY_DATABASE_URL = "mysql+pymysql://username:[email protected]:3306/databasename"
-
alembic.ini sqlalchemy.url = "mysql+pymysql://username:[email protected]:3306/databasename"
-
migrations/env.py ++from appcations.users.models import * if you have many models
- core/crud.py
- core/security.py
- core/serializer.py
- core/cookie.py
- utils/cbv.py
- appcations/users schemas.py models.py crud.py routers/*
##Usage:
from core.viewset import ViewSets
from appcations.users import schemas, models
userview = ViewSets(models.User, schemas.User, schemas.UserCreate, schemas.UserUpdate, schemas.UserPatch)
app.include_router(userview.as_view(), prefix="/api/users/accounts")