skip to navigation
skip to content

Not Logged In

flask-hookserver 0.1.2

Server for GitHub webhooks using Flask

Latest Version: 0.1.4

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.

 
File Type Py Version Uploaded on Size
flask-hookserver-0.1.2.tar.gz (md5) Source 2014-07-09 3KB
  • Downloads (All Versions):
  • 0 downloads in the last day
  • 65 downloads in the last week
  • 307 downloads in the last month