chasky-botsmith-sdk — Python SDK
Delivery 3. Implemented; conformance runner in conformance/.
It arrives last, with the contract already shaken out by two implementations — which makes it the cheapest of the three, not the least important.
Shape
The guarantees are identical to the other two SDKs; the shape is Python's.
| TypeScript | Go | Python | |
|---|---|---|---|
| Concurrency | AbortSignal |
context.Context |
asyncio |
| Terminal failure | onFatal callback |
returned by Run |
raised |
| Handlers | bot.on("text", fn) |
bot.Handle(fn) |
@bot.on_text |
| Every update | bot.on("update", fn) |
bot.HandleUpdate(fn) |
@bot.on_update |
| Attachments | bot.on("attachment", fn) |
bot.HandleAttachment(fn) |
@bot.on_attachment, then client.download(a) |
| Send a file | ctx.replyWithDocument(fileFromPath(p)) |
e.ReplyDocument(ctx, file, opts) |
event.reply_document(InputFile.from_path(p)) |
| Read history | ctx.history({ limit }) |
e.History(ctx, opts) |
event.history(limit=...) |
| React | ctx.react("👍") |
e.React(ctx, "👍") |
await event.react("👍") |
| Reply with mentions | ctx.reply(text, { mentions }) |
e.ReplyWith(ctx, text, opts) |
event.reply(text, mentions=...) |
| Entry point | await bot.start() |
bot.Run(ctx) |
await bot.run() |
| Conformance | a CLI | go test |
unittest |
There is no on_fatal: in Python an error that ends the loop is an exception,
and callers already know how to handle one. Cancel the task to stop the bot.
bot = Bot(token=os.environ["CHASKY_BOT_TOKEN"])
@bot.command("start")
async def start(event: Event) -> None:
await event.reply("Hello.")
@bot.on_text
async def echo(event: Event) -> None:
await event.reply(f"You said: {event.message.text}")
await bot.run()
Groups, mentions and rate limits work the same in all three SDKs: see Groups.
The one dependency
httpx, and it is not reached for lightly. Go and Node ship async HTTP in their
standard library; Python does not. The alternative is urllib on a thread pool,
and a 30-second long poll blocking a thread with poor cancellation is worse than
one well-maintained dependency.
The conformance runner, by contrast, is stdlib only — its fake server is
http.server on a thread — so checking the SDK installs nothing beyond httpx.
Running conformance
python -m venv .venv && .venv/bin/pip install -e . && .venv/bin/python -m unittest conformance.test_conformance -v
It reads the same cases as the other two SDKs, from ../conformance/cases.
test_runner_detects_a_mismatch keeps the runner honest: it takes a passing
case, makes one expectation impossible, and requires the runner to notice. A
runner that has never failed a case is not a tested runner.
- Contract:
../docs/00-spec.md - Invariant vs idiomatic:
../docs/01-organization.md§3
Metadata
Release files for chasky-botsmith-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chasky_botsmith_sdk-0.2.0.tar.gz | 49.9 kB | With provenance | Details for chasky_botsmith_sdk-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chasky_botsmith_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for chasky_botsmith_sdk-0.2.0-py3-none-any.whl |
Total release size: 78.6 kB
Release files / chasky_botsmith_sdk-0.2.0.tar.gz
| Download URL | chasky_botsmith_sdk-0.2.0.tar.gz |
|---|---|
| Size | 49.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d8dc59f9d3ab76b7aeded040318a651124daf54b0690b2488aeb32c367fd535
|
|
BLAKE2b-256 checksum How to use checksums |
c6876cd1b6adec08327e923eaf7933bc361a7666786c4023bca7b7f4cffc14b9
|
| 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 Nov 29, 2026.
Transparency logRelease files / chasky_botsmith_sdk-0.2.0-py3-none-any.whl
| Download URL | chasky_botsmith_sdk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 28.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6703bce99e6fe27401f5bf2f361e631747873e3ed61b652738d3297a0070060
|
|
BLAKE2b-256 checksum How to use checksums |
ac10b9394fbd7f75ab31f7fcc8c33059a8439778745414186e9407cc29b7f5e9
|
| 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 Nov 29, 2026.
Transparency logSecurity for chasky-botsmith-sdk 0.2.0
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.
Attestation for chasky_botsmith_sdk-0.2.0.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 Nov 29, 2026.
Transparency logA 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.