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.2.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.2.0
File Size Uploaded
borgee_plugin_sdk-0.2.0.tar.gz 45.2 kB Details

Built distribution (wheel)

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

Total release size: 77.6 kB

Release files / borgee_plugin_sdk-0.2.0.tar.gz

Download URL borgee_plugin_sdk-0.2.0.tar.gz
Size 45.2 kB
Tags Source
SHA-256 checksum
How to use checksums
965b185e6c08065453d022f8f37b2525d42980a09a1a4342031f21e934f52d01
BLAKE2b-256 checksum
How to use checksums
154ac3470061fa84a4ee9c456300d40cde3385d3e70a4e599a976958eb05e7ab
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.2.0-py3-none-any.whl

Download URL borgee_plugin_sdk-0.2.0-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc3ce05bcd558b59e3299a6c9c3d94c0771765f86045500d10b12986322dc9ed
BLAKE2b-256 checksum
How to use checksums
02c3511640b2afd6439450bbcf17b154c838966ff6bd1da474fc15b53e95c677
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

This release

0.2.0 This release

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