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 details)
Built Distribution
sapid-1.0.0a0-py3-none-any.whl
(17.6 kB
view details)
File details
Details for the file sapid-1.0.0a0.tar.gz
.
File metadata
- Download URL: sapid-1.0.0a0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 031b07478f2ba1aacad382dc2850d5652f42d4abeb525ff51cec8a32fae96139 |
|
MD5 | ea6ec38b29309732ddb66d945bf2db04 |
|
BLAKE2b-256 | fbad25f49ed4ac4ca0ff6a7d8135c319c19e2de7ed9b8acfd64ce7aaab9a063a |
File details
Details for the file sapid-1.0.0a0-py3-none-any.whl
.
File metadata
- Download URL: sapid-1.0.0a0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13ee8f514cf284f71aa09795a8382f8454c55ead7493932bd85033c40f471d50 |
|
MD5 | 5c0cd2aa61be818703196a65da4b2adb |
|
BLAKE2b-256 | b4b8c127e3aeec2f4686028cf69c06d4ec1f26cd80b919b5f6b7192fe770de45 |