Package description here.
Project description
github-bot-api
API for creating GitHub bots and webhooks in Python.
Quickstart
-
Create a new Smee channel on https://smee.io
-
Install
smee-client
(e.g.yarn global add smee-client
) -
Run
smee -u <SMEE_CHANNEL_URL> -P /event-handler -p 5000
-
Create a Python script with the below contents and run it
from github_bot_api import Event, Webhook from github_bot_api.flask import create_flask_app webhook = Webhook(secret=None) @webhook.on('*') def on_any_event(event: Event) -> bool: print(event) return True create_flask_app(__name__, webhook).run(debug=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
github-bot-api-0.1.0.tar.gz
(6.8 kB
view hashes)
Built Distribution
Close
Hashes for github_bot_api-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eeedda3a7c27c85a51241b717cf2678355d9d3ce1a4775c8ba7a5ec8c69f619d |
|
MD5 | 01b66b7bb96dc6c0646951ef7a7cbe4c |
|
BLAKE2b-256 | 0c914a4236e791ac78f2446a54ddb5e0061056435bfb56ae3e9ffabaab69c639 |