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

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.11.1
File Size Uploaded
borgee_plugin_sdk-0.11.1.tar.gz 55.9 kB Details

Built distribution (wheel)

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

Total release size: 92.7 kB

Release files / borgee_plugin_sdk-0.11.1.tar.gz

Download URL borgee_plugin_sdk-0.11.1.tar.gz
Size 55.9 kB
Tags Source
SHA-256 checksum
How to use checksums
de7a51d28e8920f6e5fa29bb8b16938c700d81f1d6f8a978c0008f72b43fdb02
BLAKE2b-256 checksum
How to use checksums
335f2198a33018b54ac92d561a971238612f73702f38815e82c01d6211a235d4
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.1-py3-none-any.whl

Download URL borgee_plugin_sdk-0.11.1-py3-none-any.whl
Size 36.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6cb9fd9da3d8a5018329c757cd1decb19b9c066b60fbabf13e2a89507021732d
BLAKE2b-256 checksum
How to use checksums
5f94b4bdafd84e5fdd463fa39c021120f5a24480a0afb18b583c38e9069d3947
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

This release

0.11.1 This release

2 release files

0.11.0

2 release files

0.9.0

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