Skip to main content

A CLI to generate bare-bone FastAPI project

Project description

FastAPI CREATE APP

fastapi-create-app is a CLI tool for generating bare-bone FastAPI project. When you run fastapi-create-app new [project_name], it generates the following project structure:

.
├── app/
│   ├── __init__.py
│   ├── config/
│   │   ├── __init__.py
│   │   └── config.py
│   ├── database/
│   │   ├── __init__.py
│   │   └── database.py
│   ├── models/
│   │   ├── __init__.py
│   │   └── models.py
│   ├── routers/
│   │   ├── __init__.py
│   │   └── routes.py
│   ├── schemas/
│   │   ├── __init__.py
│   │   └── schemas.py
│   └── services/
│   │   ├── __init__.py
│   │   └── services.py
│   └── statics/
│   └── templates/
│   └── tests/
│   │   ├── __init__.py
│   │   └── tests.py
│   └── utils/
│       ├── __init__.py
│       └── utils.py
├── Dockerfile
├── docker-compose.yaml
├── [project_name]_ven
├── .env
├── .gitignore
├── requirements.txt
└── README.md

INSTALLATION

pip install fastapi-create-app

COMMAND

fastapi-create-app new [project_name]

This command initialized an empty git repository, create a virtual environment using the python builtin venv by appending _evv to the project name, i.e [project_name]_env.

Activate the virtual environment before installing dependencies.

view project on github

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_create_app-1.1.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

fastapi_create_app-1.1.0-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page