Creates a FastAPI app that is ready to be deployed on Docker hosts like DigitalOcean / Render.com
Project description
make-fastapi-app
pip install make-fastapi-app
Running
make-fastapi-app
FastAPI app creation template
Instructions
First off, make sure you have python installed and this package pip install make-fastapi-app, this will create a new global command make-fastapi-app that you will use in the steps below.
- Create a new python github repo, let's call it "myapp"
- Clone that "myapp" repo to your local computer
cdinto "myapp`- Run
make-fastapi-appat the project root.- Follow the instructions
- Now
git committhe files into the repo.
Now you should have a fully formed app that is ready to be used at Render.com or DigitalOcean, which will use the Dockerfile install. Everything should be automatic with this option.
Running locally
You can either run the app locally. See the run scripts at the project root. You'll need to install the project globally with pip install -e . or else use a virtual environment with python make_venv.py and then using . ./activate.sh and then pip install -e . and then running the run_dev.py which should launch everything. Also there is a VSCode build tool that will do this automatically. It will be something like Terminal -> Run Build Tools -> Run Local
Windows
This environment requires you to use git-bash.
Linting
Run ./lint.sh to find linting errors using pylint, flake8 and mypy.
Versions
- 1.0.6: Command broke due to new python. I fixed it.
- 1.0.5: Fixes adding +x to sh files
- 1.0.4: Allows empty github url
- 1.0.3: Adds post install instructions to the command line.
- 1.0.2: Remove trailing
.gitand/for githurl repo input - 1.0.1: Adds +x to all shell scripts
- 1.0.0: Initial commit
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file make_fastapi_app-1.0.6.tar.gz.
File metadata
- Download URL: make_fastapi_app-1.0.6.tar.gz
- Upload date:
- Size: 14.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdeb1288cc6792b5fa6317d829d4f0d2f614eccbac480d2d5ceda271ba0e520a
|
|
| MD5 |
10ec75ce4d7e09fdf7b24877ea0262ee
|
|
| BLAKE2b-256 |
84cdd8ac8ace5764a5fda92141078ff0cd71a07d89f8e291285a6f44c927b8c7
|
File details
Details for the file make_fastapi_app-1.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: make_fastapi_app-1.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
826b17df26e72bed22293354afa2224318c16f212766b537bd80fbc45fa1e642
|
|
| MD5 |
c3e7abbe0811d7296a0e423f0b3ddfe6
|
|
| BLAKE2b-256 |
33d3efd18a784f83b4523d818a8f4f392bc84e233c184a2e101d2c3848077556
|