{"id":21293051,"url":"https://github.com/criteo/gourde","last_synced_at":"2025-07-11T16:32:05.430Z","repository":{"id":31449973,"uuid":"127255004","full_name":"criteo/gourde","owner":"criteo","description":"Flask sugar for Python microservices","archived":false,"fork":false,"pushed_at":"2023-09-14T08:34:48.000Z","size":65,"stargazers_count":7,"open_issues_count":0,"forks_count":9,"subscribers_count":37,"default_branch":"main","last_synced_at":"2024-11-16T03:17:00.025Z","etag":null,"topics":["flask","logs","metrics","sugar","twisted"],"latest_commit_sha":null,"homepage":"","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/criteo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-29T07:37:00.000Z","updated_at":"2022-12-14T22:49:04.000Z","dependencies_parsed_at":"2023-01-14T19:04:04.247Z","dependency_job_id":null,"html_url":"https://github.com/criteo/gourde","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo%2Fgourde","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo%2Fgourde/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo%2Fgourde/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/criteo%2Fgourde/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/criteo","download_url":"https://codeload.github.com/criteo/gourde/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225741166,"owners_count":17516895,"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":["flask","logs","metrics","sugar","twisted"],"created_at":"2024-11-21T13:53:06.172Z","updated_at":"2024-11-21T13:53:06.688Z","avatar_url":"https://github.com/criteo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gourde\n![Build Status](https://github.com/github/docs/actions/workflows/python-package.yml/badge.svg)\n[![Coverage Status](https://coveralls.io/repos/github/criteo/gourde/badge.svg)](https://coveralls.io/github/criteo/gourde?branch=main)\n[![PyPI version](https://badge.fury.io/py/gourde.svg)](https://badge.fury.io/py/gourde)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/gourde.svg)](https://pypi.python.org/pypi/gourde/)\n\nFlask(-Twisted/Gunicorn) microframework for microservices with Prometheus and Sentry support.\n\nThe goal is to remove most of the boilerplate necessary to start a simple HTTP application.\nThis provides:\n\n* Sane arguments (`--host`, `--port`, `--debug`, `--log-level`)\n* Support to have a production ready uwsgi container (`--twisted` or `--gunicorn`)\n* Prometheus support with default metrics (`gourde.metrics`: See [prometheus_flask_exporter](https://github.com/rycus86/prometheus_flask_exporter))\n* Optional sentry support if the `SENTRY_DSN` env var is set.\n* If you have a 'static' directory in your module, just put a favicon.ico inside!\n\n## Installation\n\n```bash\npip install gourde\n\n# To use a production ready wsgi server install one of the following extra requirements\npip install gourde[twisted]\npip install gourde[gunicorn]\n```\n\n## Quick-start\n\n```python\nfrom gourde import Gourde\n\ngourde = Gourde(__name__)\napp = gourde.app  # This is a flask.Flask() app.\n\n@app.route('/example')\ndef index():\n    return 'Example'\n\ndef main():\n    gourde.run()\n\nif __name__ == '__main__':\n    main()\n```\n\nWant to know more? Look at [example/app.py](example/app.py), you can run it with `gourde-example`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcriteo%2Fgourde","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcriteo%2Fgourde","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcriteo%2Fgourde/lists"}