{"id":17103761,"url":"https://github.com/meetmangukiya/ghooks","last_synced_at":"2025-04-13T00:50:33.261Z","repository":{"id":57434219,"uuid":"76777858","full_name":"meetmangukiya/ghooks","owner":"meetmangukiya","description":"Making GitHub hooks easier and faster to get up and running!","archived":false,"fork":false,"pushed_at":"2017-05-06T09:23:16.000Z","size":7,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-26T18:52:09.821Z","etag":null,"topics":["ease-framework","flask","ghooks","github","github-webhooks","python3","webhooks"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meetmangukiya.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-18T11:03:20.000Z","updated_at":"2018-07-30T23:53:20.000Z","dependencies_parsed_at":"2022-08-27T23:10:18.019Z","dependency_job_id":null,"html_url":"https://github.com/meetmangukiya/ghooks","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/meetmangukiya%2Fghooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmangukiya%2Fghooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmangukiya%2Fghooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meetmangukiya%2Fghooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meetmangukiya","download_url":"https://codeload.github.com/meetmangukiya/ghooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650436,"owners_count":21139672,"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":["ease-framework","flask","ghooks","github","github-webhooks","python3","webhooks"],"created_at":"2024-10-14T15:34:31.571Z","updated_at":"2025-04-13T00:50:33.239Z","avatar_url":"https://github.com/meetmangukiya.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ghooks\n======\n\nGetting started\n---------------\n\n.. code:: py\n\n    import ghooks\n\n    @ghooks.events('push')\n    def push_event(data):\n        # Use/Manipulate data posted\n        # Actions to take when push event is triggered\n\n    ghooks.run()\n\nTo run the webhook:\n\n1. To directly run(helpful while debugging stuff) ``python3 filename.py -p 5000``\n2. To run the webhook with gunicorn ``gunicorn webhook:app``. Please ensure that you import the ``app`` with ``from ghooks import app``.\n\nTo create different handlers for different events:\n\nUse ``ghooks.events`` decorator. Pass the events to be handled as arguments to\nthe decorator. Example:\n\n.. code:: py\n\n    from ghooks import app\n    import ghooks\n\n    @ghooks.events('push')\n    def push_handler(data): \n        # Play with the data here\n\n    @ghooks.events('push', 'ping')\n    def push_and_ping_handler(data):\n        # This will be called at both push and ping events\n\nInstallation\n------------\n\n.. code:: bash\n\n    pip install ghooks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeetmangukiya%2Fghooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeetmangukiya%2Fghooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeetmangukiya%2Fghooks/lists"}