flask-gunicorn-cmd
Command line wrapper to run a named Flask script inside a Gunicorn server.
This project is used in ContainDS Dashboards, which is a user-friendly way to launch Jupyter notebooks as shareable dashboards inside JupyterHub. Also works with Streamlit and other visualization frameworks.
Install and Run
Install using pip.
pip install flask-gunicorn-cmd
The file to start is specified on the command line, for example:
flask-gunicorn-cmd ~/Dev/myflaskscript.py
By default the server will listen on port 8888, importing the Flask app named 'app', or locating the first app.Flask object that it can find otherwise.
To specify a different port, use the --port flag.
To explicitly specify the name of your Flask app, use the --server-name flag.
flask-gunicorn-cmd --server-name=app --port=8888 --workers=4 ~/Dev/myflaskscript.py
To run directly in python: python -m flask_gunicorn_cmd.main <rest of command line>
Changelog
- v0.0.6 Change CWD to script's folder, and also add that folder to the Python search path.
Metadata
Release files for flask-gunicorn-cmd 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flask-gunicorn-cmd-0.0.6.tar.gz | 7.6 kB | Without provenance | Details for flask-gunicorn-cmd-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flask_gunicorn_cmd-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for flask_gunicorn_cmd-0.0.6-py3-none-any.whl |
Total release size: 15.5 kB
Release files / flask-gunicorn-cmd-0.0.6.tar.gz
| Download URL | flask-gunicorn-cmd-0.0.6.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
54ac00822b14c19c994e1f7e60584ab5d98fddfd9d09eba3c2e845bb266d564b
|
|
BLAKE2b-256 checksum How to use checksums |
ae2e81f0645e04707ce9090abd3458ea56ec658637541b70e8c1e65ebfe438d7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.7
|
Release files / flask_gunicorn_cmd-0.0.6-py3-none-any.whl
| Download URL | flask_gunicorn_cmd-0.0.6-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4779a708c51e2dccf5e90c631e36475c9f6560bd27fa8b8922b743676011d347
|
|
BLAKE2b-256 checksum How to use checksums |
1e938f70c984150bf1e2221df5ae516f1f3e5af284df65b8a53f9d900ad81c69
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.7
|
Security for flask-gunicorn-cmd 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.