https://github.com/nymann/generate-fastapi
Given an SQL migration (.sql) file generate CRUD and tests.
https://github.com/nymann/generate-fastapi
Last synced: 4 months ago
JSON representation
Given an SQL migration (.sql) file generate CRUD and tests.
- Host: GitHub
- URL: https://github.com/nymann/generate-fastapi
- Owner: nymann
- License: gpl-3.0
- Created: 2020-07-19T23:24:11.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-07T19:00:56.000Z (about 5 years ago)
- Last Synced: 2025-12-13T21:27:03.587Z (6 months ago)
- Language: Mako
- Size: 135 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Generate FastAPI
*A code generation tool for FastAPI*


Uses [nymann/fastapi-template](https://github.com/nymann/fastapi-template) as a
base template.
Generates route(s) given an SQL migration file or JSON (see [examples](examples)).
```
$ generate_fastapi --help
Usage: generate_fastapi [OPTIONS] FILE
Arguments:
FILE Path to a SQL upgrade migration or a JSON file [required]
Options:
--target-directory TEXT Path to the target directory [default: .]
--project-name TEXT Your project name fx. 'my_program'
[required]
--from_repo TEXT
--install-completion [bash|zsh|fish|powershell|pwsh]
Install completion for the specified shell.
--show-completion [bash|zsh|fish|powershell|pwsh]
Show completion for the specified shell, to
copy it or customize the installation.
--help Show this message and exit.
```