Twisted GitHub Service Hooks Server
A picture is worth a thousand words:
This is just a boilerplate for implementing a GitHub Service Hooks server based on Klein and Twisted.
Implement your on “run.py” and start it like:
twistd -n web --class=run.resource
It will parse incoming hooks and return an ‘Event’ containing hook name, event name and JSON payload.
Configure GitHub Hooks using:
http://host:port/hook/HOOK-NAME
HOOK-NAME is just a random string to track the source of the hook or implement multiple hooks on the same server.
It also include a simple web tool to register hooks or check hook status. Login using GitHub credentials:
http://host:port/
Development
Get virtual environment and install dependencies:
make deps
Run the tests:
make test
Run the server:
make run
TODO
Add ssl security check instead of IP filter.
Add proper pagination for GitHub API… not it just request 1000 entries.
Add configuration and checking of secret
Thanks
This project is standing on the shoulders of giants:
Twisted Matrix
Klein
AngularJS
AngujarJS-UI Bootstrap
Metadata
Release files for txghserf 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| txghserf-0.3.0.tar.gz | 18.3 kB | Without provenance | Details for txghserf-0.3.0.tar.gz |
Release files / txghserf-0.3.0.tar.gz
| Download URL | txghserf-0.3.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7142a9f92469a92d133eee2157af8ddf8fcb31aab157298d9e9289355376aa65
|
|
BLAKE2b-256 checksum How to use checksums |
5bd1c2aa9764d093a2aad17ddf3b191a8714ebcd20364cfe37d5dd879df5db0b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for txghserf 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.