Metadata-Version: 2.1
Name: github-bot-api
Version: 0.1.0
Summary: Package description here.
Home-page: UNKNOWN
Author: Niklas Rosenstein
Author-email: nrosenstein@palantir.com
License: UNKNOWN
Platform: UNKNOWN
Requires-Python: >=3.5.0,<4.0.0
Description-Content-Type: text/markdown
Requires-Dist: PyJWT (<2.0.0,>=1.7.1)
Requires-Dist: cryptography (<4.0.0,>=3.1.1)
Requires-Dist: requests (<3.0.0,>=2.25.0)

# github-bot-api

API for creating GitHub bots and webhooks in Python.

## Quickstart

1. Create a new Smee channel on https://smee.io
2. Install `smee-client` (e.g. `yarn global add smee-client`)
3. Run `smee -u <SMEE_CHANNEL_URL> -P /event-handler -p 5000`
4. Create a Python script with the below contents and run it

    ```python
    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)
    ```


