Borgee Plugin SDK for Python
borgee-plugin-sdk connects a Python runtime to Borgee over the Borgee Plugin
Protocol (BPP). It supports Python 3.11 through 3.13 and pins
websockets==15.0.1 because the connection hardening depends on that exact
client implementation.
Build a wheel from this directory or install the source checkout for evaluation. The repository also provides a manual workflow for publishing to TestPyPI and PyPI.
python -m pip install .
import asyncio
from borgee_plugin_sdk import BorgeePluginOptions, create_borgee_plugin
async def main() -> None:
client = create_borgee_plugin(
BorgeePluginOptions(
base_url="https://chat.example.com",
api_key="bgr_example",
)
)
async with client:
async for delivery in client.deliveries():
print(delivery.event)
await delivery.checkpoint()
asyncio.run(main())
Every inbound message is a Delivery. The iterator has one consumer, and it will not advance until the consumer calls checkpoint() or fail(). Actions fail until the connection has been online once; after that, one submitted while the client is reconnecting waits for it to return, bounded by the action timeout.
For local development, insecure transport is restricted to loopback origins and
requires allow_insecure_loopback=True. API keys are sent only in the WebSocket
Authorization header. Redirects are rejected.
This package is licensed under the MIT License.
Metadata
Release files for borgee-plugin-sdk 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| borgee_plugin_sdk-0.11.0.tar.gz | 55.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| borgee_plugin_sdk-0.11.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 91.6 kB
Release files / borgee_plugin_sdk-0.11.0.tar.gz
| Download URL | borgee_plugin_sdk-0.11.0.tar.gz |
|---|---|
| Size | 55.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c1886cfa152e9db0aaae59233d5c71ef157fed334532a27f01738f6b98c37e4b
|
|
BLAKE2b-256 checksum How to use checksums |
ee8fe9a7cd99b71ed817af9a859010c038867b149ea00d3c3d530a48b0429410
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / borgee_plugin_sdk-0.11.0-py3-none-any.whl
| Download URL | borgee_plugin_sdk-0.11.0-py3-none-any.whl |
|---|---|
| Size | 36.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ff9b5ec42e3f1d82791246636f45b60069e7e7ae7ca06a504ea6674c26e9ea9
|
|
BLAKE2b-256 checksum How to use checksums |
6cb2c49b3ee6ee867a207c980706299c7e1a5f75f81715106d070d5109e3467f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|