Skip to main content

Simple example using Flask and Swagger powered by gunicorn.

Project description

gunicorn-flask-swagger-example

Downloads

git clone https://github.com/danielef/gunicorn-flask-swagger-example.git

Development

First, create a virtual environment as follows:

cd gunicorn-flask-swagger-example
virtualenv -p python3.7 env
source env/bin/activate

Then, install using pip:

pip install .

And run it with:

gsfe

Display all the options with -h:

$ gfse -h
usage: gfse [-h] [-b HOST] [-p PORT] [-v] [-r]

optional arguments:
  -h, --help            show this help message and exit
  -b HOST, --host HOST  APIn Host
  -p PORT, --port PORT  API Port
  -v, --verbose         API debug
  -r, --use-reloader    API use reloader

Running with gunicorn

gunicorn -w 4 gfse.app:app

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

gunicorn-flask-swagger-example-0.0.2.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gunicorn_flask_swagger_example-0.0.2-py2.py3-none-any.whl (5.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file gunicorn-flask-swagger-example-0.0.2.tar.gz.

File metadata

File hashes

Hashes for gunicorn-flask-swagger-example-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c2f9216dd12f7c984c2c2d30a82842e7f3dfb5ebd3bcc21a0a446ee85a53d0a4
MD5 b1bef4bc4d06a62b8cef38d9844f53a1
BLAKE2b-256 ba9782c7258132af1b5811430bc4f43181b247e1addea4b1a0969535b115307f

See more details on using hashes here.

File details

Details for the file gunicorn_flask_swagger_example-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for gunicorn_flask_swagger_example-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a94a1b5566e61673e796460a9e69a7d7504c3b49b7b52044a3ca038798fa8d29
MD5 28c18ddf24d4bb88302d88084a93d239
BLAKE2b-256 4162b159580a72cb212ff6087dac403c3114fbb01f33be8502338e3c3e1d0eb9

See more details on using hashes here.

Supported by

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