Skip to main content

Server for GitHub webhooks using Flask

Project description

A tool that receives webhooks from GitHub and passes the data along to a user-defined function. It validates the HMAC hash, and checks that the originating IP address comes from the GitHub IP block.

Example

from hookserver import HookServer

app = HookServer(__name__, b'mySecretKey')

@app.hook('ping')
def ping(data, guid):
    return 'pong'

app.run()

num_proxies

The optional parameter num_proxies is used to prevent clients from pretending to be on the GitHub IP block. Set it to the number of proxies you have in front of your WSGI server. See the Werkzeug documentation for more info.

Project details


Release history Release notifications

History Node

1.1.0

History Node

1.0.0

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.1

History Node

0.2.0

History Node

0.1.4

History Node

0.1.3

This version
History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
flask-hookserver-0.1.2.tar.gz (3.2 kB) Copy SHA256 hash SHA256 Source None Jul 9, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page