Skip to main content

A robust asynchronous framework for building scalable GitHub Applications.

Project description

Sapid

A high-level framework for building GitHub applications in Python.

Core Features

  • Async
  • Proper ratelimit handling
  • Handles interactions for you (responding with appropriate response status codes etc.)
  • Minimal raw payloads. Most are being parsed internally into pythonic objects.
  • Runs its own webhook server, with a no-bloat async web server (aiohttp)

Example

Basic bot example

from sapid import GitBot

bot = GitBot(
    pem_file_fp="bot.pem",
    app_id="...", # Found on github.
    webhook_secret="...", # Set on github.
    client_secret="..." # Generate on github.
)

@bot.event
async def on_sapid_tcp_ready(host, port):
    print(f"tcp running on http://{host}:{port}")
    print(bot.user.name)
    print(bot.user.description)

bot.run(host="127.0.0.1", port=3000)

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

sapid-1.0.0a0.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

sapid-1.0.0a0-py3-none-any.whl (17.6 kB view hashes)

Uploaded Python 3

Supported by

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