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, ReplayMode, create_borgee_plugin


async def main() -> None:
    client = create_borgee_plugin(
        BorgeePluginOptions(
            base_url="https://chat.example.com",
            api_key="bgr_example",
            replay_mode=ReplayMode.LATEST_N,
        )
    )
    async with client:
        async for delivery in client.deliveries():
            print(delivery.event)
            await delivery.checkpoint()


asyncio.run(main())

Every inbound message or replay summary is a Delivery. The iterator has one consumer, and it will not advance until the consumer calls checkpoint() or fail(). Actions fail while the connection is resuming; replay consumption continues until the client becomes online.

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

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.1.2
File Size Uploaded
borgee_plugin_sdk-0.1.2.tar.gz 43.4 kB Details

Built distribution (wheel)

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

Total release size: 74.7 kB

Release files / borgee_plugin_sdk-0.1.2.tar.gz

Download URL borgee_plugin_sdk-0.1.2.tar.gz
Size 43.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7c7c6e9769e00bb4a129432e37fb2bcbacccba3b4e6c23c1ecd898f977c97835
BLAKE2b-256 checksum
How to use checksums
c765d3c18d47514626ba9cdf957336609467c2a5a6c37f46a66d1903ecfee656
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.1.2-py3-none-any.whl

Download URL borgee_plugin_sdk-0.1.2-py3-none-any.whl
Size 31.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d660d9a4cebb13a4467e00a596d963a9407a88b5947c9d83f4044b85ae4ce388
BLAKE2b-256 checksum
How to use checksums
afff08fa4912cf005ec02920af59f0c6817a8e087de0053262cd10fd0e5ee6d0
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

0.9.0

2 release files

0.2.0

2 release files

This release

0.1.2 This release

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