A simple GitHub webhook server
Project description
fastwebhook
A simple GitHub webhook server.
At this stage, this is only able to send tweets on software releases. It's very early stage still. You'll need to set up a webhook on GitHub.
Install
First install the package:
pip install fastwebhook
Then create an file called twitter.ini
containing:
gh_secret:
consumer_key:
consumer_secret:
access_token:
access_token_secret:
gh_secret
is the webhook secret you set in GitHub. The remaining are your twitter API keys.
How to use
Run fastwebhook
to run the web server. Pass --help
for info about optional arguments. Either run this from the same directory that contains your twitter.ini
, or else pass --inifile
along with the full path to your ini file.
Systemd service
The following commands should all be run as root (i.e. prepend sudo
to the commands).
To install it as a systemd service (which is probably what you want), run fastwebhook_install
. Pass --help
for info about optional arguments, which will be passed to fastwebhook
by the service.
After the service is installed, run systemctl start fastwebhook
to start it, systemctl status fastwebhook
to check it, and systemctl stop fastwebhook
to stop it. Run systemctl enable fastwebhook
to have it start automatically on boot. Run journalctl -eu fastwebhook
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fastwebhook-0.0.15.tar.gz
.
File metadata
- Download URL: fastwebhook-0.0.15.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5456c32f39dcc412cf6af089b5ca2591652724e221f44b6f0e3920b3a2b0aa26 |
|
MD5 | 07e7c73cf7e9e4cf1e176898c439f700 |
|
BLAKE2b-256 | 9ed2d8a7696ef020dc8ec020457c6e02ffdaa276f8ab4cd5dc546446d1babc54 |
File details
Details for the file fastwebhook-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: fastwebhook-0.0.15-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bba8280c43551ca864a3bcb9af17719963b2921dfe762b38a426a90f7781716d |
|
MD5 | d87007ae69a0e4365fc4f0286ec168cb |
|
BLAKE2b-256 | aa5ce0b6f4e2df521579db7c20c3c34b07bc53428b3cb97414b895ed2b487237 |