Skip to content

0.3.5

Latest
Compare
Choose a tag to compare
@kareemmahlees kareemmahlees released this 15 Dec 13:53
· 3 commits to master since this release
f3ecc31

A new command was added: g

Options

router

generates a new router file at app\api\routers or specify your own path with the --path option

schema

generates a new pydantic schema file at app\api\schemas or specify your own path with the --path option

model

generates a new model file at app\api\schemas or specify your own path with the --path option.
the type of the model is determined with the --model option, choices are sqlmodel, sqlalchemy

NOTE❗: all the paths provided to the --path option must be relative to the current working directory

Change the files to directories

the routers.py, schemas.py, and models.py now became their own separate directories to accommodate the new g command

Nicer User experience

image