Skip to main content

botseon (Python SDK)

The Python client and botseon-task command for the Botseon API, used with your personal API key (Settings > API keys). Standard library only; Python 3.9 or later.

pip install botseon
from botseon import Client

client = Client()  # BOTSEON_API_URL, BOTSEON_API_KEY

for bot in client.list_bots():
    print(bot.id, bot.name)

result = client.run_task("Draft the release notes.", bot_name="Inbox Triage")
print(result.outcome, result.text)

The calls mirror the TypeScript SDK (packages/sdk): run_task, send_task, get_run, wait_for_run, get_result, cancel_run, resolve_bot, list_bots. Every failure is a BotseonError subclass, one per code (NotFoundError, ConflictError, TaskTimeoutError, …).

BOTSEON_API_KEY=... botseon-task --bot "Inbox Triage" --json -- Draft the release notes.
BOTSEON_API_KEY=... botseon-task --list-bots

Tests

tests/ runs against the fake API from @botseon/sdk/test/fake-api. In this repository pnpm --filter @botseon/sdk test builds the fake and runs python3 -m unittest discover -s tests with the client's transport seam piped to it (packages/sdk/src/python-sdk.e2e.test.ts). Run on its own, without BOTSEON_FAKE_API, the end-to-end module skips.

Publishing

python3 -m build sdk/python then twine upload dist/* (needs a PyPI token).

Metadata

Release files for botseon 0.0.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 botseon 0.0.1
File Size Uploaded Provenance Actions
botseon-0.0.1.tar.gz 16.8 kB With provenance Details for botseon-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for botseon 0.0.1
File Interpreter ABI Platform Actions
botseon-0.0.1-py3-none-any.whl Python 3 none any Details for botseon-0.0.1-py3-none-any.whl

Total release size: 32.2 kB

Release files / botseon-0.0.1.tar.gz

Download URL botseon-0.0.1.tar.gz
Size 16.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1328f31aefb1a74b046a031cd24fe9ddc7a7a3b2eba4bda5678431b5727630c3
BLAKE2b-256 checksum
How to use checksums
1a5955ab706a4c56b637a38a63c8f44738cc9f0d8177f1ff317c01529a90a571
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Release files / botseon-0.0.1-py3-none-any.whl

Download URL botseon-0.0.1-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0daf68fdf82c0d617ffcb7b3eca1d7c8c0bec038f86256b44db9735559a719ff
BLAKE2b-256 checksum
How to use checksums
d4f229910fe0738c6093b358fe152b6ff832db0dee1f125a9046db060523e696
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

Security for botseon 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for botseon-0.0.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

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