Skip to main content

API for creating GitHub bots and webhooks in Python.

Project description

python-github-bot-api

PyPI - Python Version

A thin Python library for creating GitHub bots and webhooks in Python with PyGithub.

Quickstart

from github_bot_api import GithubApp
from pathlib import Path

app = GithubApp(
    user_agent='my-bot/0.0.0',
    app_id="12345",
    private_key=Path("app-private.key").read_text(),
)

Create a PyGithub client for the app itself:

from github import Github
client: Github = app.app_client()

Create a PyGithub client for an app's installation scope:

from github import Github
client: Github = app.installation_client(45678)

For more examples, check out the documentation.

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

github_bot_api-0.7.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_bot_api-0.7.1-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file github_bot_api-0.7.1.tar.gz.

File metadata

  • Download URL: github_bot_api-0.7.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for github_bot_api-0.7.1.tar.gz
Algorithm Hash digest
SHA256 54fbe5f147a7e354abd43b2591f64c213aedcc8c6d436926e132de9095504788
MD5 aa901aa6a7fe68a25a14d50764076ac1
BLAKE2b-256 6d20cd4b4e92df6aeb502da0accccc314980e209778bb7b886953a2901ec9dd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for github_bot_api-0.7.1.tar.gz:

Publisher: release.yml on NiklasRosenstein/python-github-bot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file github_bot_api-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: github_bot_api-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for github_bot_api-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61d57e389f88444c4bccb5f38e20d3c89abbcfc70beeb5f83f8445773aa9d2ba
MD5 6be0a880955365ebca3614bb72712dba
BLAKE2b-256 2da61773e334a4a4646d08163f4dec7e5f5ae1649cb2fda70207eb694929056c

See more details on using hashes here.

Provenance

The following attestation bundles were made for github_bot_api-0.7.1-py3-none-any.whl:

Publisher: release.yml on NiklasRosenstein/python-github-bot-api

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page