{"id":21064729,"url":"https://github.com/ideonate/flask-gunicorn-cmd","last_synced_at":"2025-03-14T01:34:18.467Z","repository":{"id":57430371,"uuid":"359755600","full_name":"ideonate/flask-gunicorn-cmd","owner":"ideonate","description":"Serve a Flask app via Gunicorn by passing filepath to your Flask Python script","archived":false,"fork":false,"pushed_at":"2021-04-20T09:30:13.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-22T00:18:35.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ideonate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-20T09:19:11.000Z","updated_at":"2021-04-20T09:29:37.000Z","dependencies_parsed_at":"2022-08-26T03:51:07.752Z","dependency_job_id":null,"html_url":"https://github.com/ideonate/flask-gunicorn-cmd","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fflask-gunicorn-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fflask-gunicorn-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fflask-gunicorn-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ideonate%2Fflask-gunicorn-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ideonate","download_url":"https://codeload.github.com/ideonate/flask-gunicorn-cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243507668,"owners_count":20301877,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T17:51:28.717Z","updated_at":"2025-03-14T01:34:18.442Z","avatar_url":"https://github.com/ideonate.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flask-gunicorn-cmd\n\nCommand line wrapper to run a named Flask script inside a Gunicorn server.\n\nThis project is used in [ContainDS Dashboards](https://github.com/ideonate/cdsdashboards), which is a user-friendly \nway to launch Jupyter notebooks as shareable dashboards inside JupyterHub. Also works with Streamlit and other \nvisualization frameworks.\n\n## Install and Run\n\nInstall using pip.\n\n```\npip install flask-gunicorn-cmd\n```\n\nThe file to start is specified on the command line, for example:\n\n```\nflask-gunicorn-cmd ~/Dev/myflaskscript.py\n```\n\nBy default the server will listen on port 8888, importing the Flask app named 'app', or locating the first app.Flask \nobject that it can find otherwise.\n\nTo specify a different port, use the --port flag.\n\nTo explicitly specify the name of your Flask app, use the --server-name flag.\n\n```\nflask-gunicorn-cmd --server-name=app --port=8888 --workers=4 ~/Dev/myflaskscript.py\n```\n\nTo run directly in python: `python -m flask_gunicorn_cmd.main \u003crest of command line\u003e`\n\n## Changelog\n\n- v0.0.6 Change CWD to script's folder, and also add that folder to the Python search path.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideonate%2Fflask-gunicorn-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fideonate%2Fflask-gunicorn-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fideonate%2Fflask-gunicorn-cmd/lists"}