Skip to main content

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.9.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for borgee-plugin-sdk 0.9.0
File Size Uploaded
borgee_plugin_sdk-0.9.0.tar.gz 57.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for borgee-plugin-sdk 0.9.0
File Interpreter ABI Platform
borgee_plugin_sdk-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 94.5 kB

Release files / borgee_plugin_sdk-0.9.0.tar.gz

Download URL borgee_plugin_sdk-0.9.0.tar.gz
Size 57.2 kB
Tags Source
SHA-256 checksum
How to use checksums
650fdc9942ca8c39835ad22daf91007aaabcada92eee05598c877c8515811497
BLAKE2b-256 checksum
How to use checksums
d153a822d886e5575691e176c14df1d06301d9abbee431b848c9bbe497b1d3ef
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.9.0-py3-none-any.whl

Download URL borgee_plugin_sdk-0.9.0-py3-none-any.whl
Size 37.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f7d51a22aff4e1b19805e79fffa8163fb22c7fcc240ef014c140abdafd700e10
BLAKE2b-256 checksum
How to use checksums
b3c4abba70014570c79727a8efcb84be0009e68c3e75f8879202d2c048d8c2ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.13.1

2 release files

0.12.1

2 release files

0.11.1

2 release files

0.11.0

2 release files

This release

0.9.0 This release

2 release files

0.2.0

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page