{"id":13746354,"url":"https://github.com/bloomberg/python-github-webhook","last_synced_at":"2025-04-12T20:43:47.610Z","repository":{"id":48042499,"uuid":"50692237","full_name":"bloomberg/python-github-webhook","owner":"bloomberg","description":"A framework for writing webhooks for GitHub, in Python.","archived":false,"fork":false,"pushed_at":"2024-04-04T16:17:08.000Z","size":195,"stargazers_count":293,"open_issues_count":15,"forks_count":70,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-04T00:08:00.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://bloomberg.github.io/python-github-webhook","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/bloomberg.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-29T21:22:48.000Z","updated_at":"2025-03-07T01:30:09.000Z","dependencies_parsed_at":"2024-06-18T21:12:39.785Z","dependency_job_id":"615e4c04-54b2-48fe-b636-68210e02e255","html_url":"https://github.com/bloomberg/python-github-webhook","commit_stats":{"total_commits":21,"total_committers":12,"mean_commits":1.75,"dds":0.6666666666666667,"last_synced_commit":"61e713c3781e2de6e327554be54095df2d666604"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fpython-github-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fpython-github-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fpython-github-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloomberg%2Fpython-github-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloomberg","download_url":"https://codeload.github.com/bloomberg/python-github-webhook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248631686,"owners_count":21136555,"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-08-03T06:00:52.373Z","updated_at":"2025-04-12T20:43:47.580Z","avatar_url":"https://github.com/bloomberg.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# GitHub Webhook (micro) Framework\n\n[![PyPI](https://img.shields.io/pypi/v/github-webhook.svg)][2]\n\n`python-github-webhook` is a very simple, but powerful, microframework for writing [GitHub\nwebhooks][1] in Python. It can be used to write webhooks for individual repositories or whole\norganisations, and can be used for GitHub.com or GitHub Enterprise installations; in fact, it was\norginally developed for Bloomberg's GHE install.\n\n## Getting started\n\n`python-github-webhook` is designed to be as simple as possible, to make a simple Webhook that\nreceives push events all it takes is:\n\n```py\nfrom github_webhook import Webhook\nfrom flask import Flask\n\napp = Flask(__name__)  # Standard Flask app\nwebhook = Webhook(app) # Defines '/postreceive' endpoint\n\n@app.route(\"/\")        # Standard Flask endpoint\ndef hello_world():\n    return \"Hello, World!\"\n\n@webhook.hook()        # Defines a handler for the 'push' event\ndef on_push(data):\n    print(\"Got push with: {0}\".format(data))\n\nif __name__ == \"__main__\":\n    app.run(host=\"0.0.0.0\", port=80)\n```\n\n## License\n\nThe `python-github-webhook` repository is distributed under the Apache License (version 2.0);\nsee the LICENSE file at the top of the source tree for more information.\n\n[1]: https://developer.github.com/webhooks/\n[2]: https://pypi.python.org/pypi/github-webhook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloomberg%2Fpython-github-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloomberg%2Fpython-github-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloomberg%2Fpython-github-webhook/lists"}