Skip to content

This is a CLI application written with Typer from the creator of FastAPI! You can create your router file, model files and even the Dockerfile with just one command!

Notifications You must be signed in to change notification settings

NusretOzates/fastAPICreator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

FastAPI Creator CLI

This is a CLI application written with Typer from the creator of FastAPI! You can create your router file, model files and even the Dockerfile with just one command!

Usage: fast_creator.py [OPTIONS] PROJECT_NAME

Arguments:
  PROJECT_NAME  [required]

Options:
  --routers TEXT                  Router names to create, write every router
                                  name with spaces  [default: ]

  --models TEXT                   Model names to create, write every router
                                  name with spaces  [default: ]

  --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.

Usage Example:

python fast_creator.py fastboy --models "user team" --routers "users teams"

Example Result:

fastboy
    │   Dockerfile
    │   main.py
    └───app
        │   main.py
        │   __init__.py
        │
        ├───models
        │       team.py
        │       user.py
        │       __init__.py
        │
        └───routers
                teams.py
                users.py
                __init__.py

About

This is a CLI application written with Typer from the creator of FastAPI! You can create your router file, model files and even the Dockerfile with just one command!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages