Set up a Flask service with a few keystrokes
Set up a Flask service with a few keystrokes
Install from PyPI using pip
, you may need to use pip3
depending on your installation
pip install create-flask-service
create-flask-service
commandTo start the application run app.py
and navigate to http://127.0.0.1:5000, you should see a blank Swagger UI page. Note that in certain IDEs like PyCharm you may need to set your working directory to the project root, this will ensure that the .env file is loaded before runtime.
Note that supplying arguments will not run the main program
Name | Argument | Description | Default |
---|---|---|---|
Version | -V | Display installed version number | False |
.
├── README.md
├── __init__.py
├── app.py
├── controller
│ └── __init__.py
├── database
│ └── __init__.py
├── interface
│ └── __init__.py
├── model
│ └── __init__.py
├── requirements.txt
├── schema
│ └── __init__.py
├── scripts
│ └── __init__.py
├── service
│ └── __init__.py
└── utils
└── __init__.py