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
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
sapid-1.0.0a0.tar.gz
(12.9 kB
view hashes)
Built Distribution
sapid-1.0.0a0-py3-none-any.whl
(17.6 kB
view hashes)