Lightweight library for building Microsoft Bot Framework bots - Python
Project description
botas
Lightweight library for building Microsoft Bot Framework bots — Python.
What it does
- Validates inbound JWT tokens from the Bot Framework Service
- Deserializes activities and dispatches them to registered handlers
- Runs a configurable middleware pipeline before each handler
- Authenticates outbound HTTP calls using OAuth2 client credentials
- Preserves unknown JSON properties so custom channel data round-trips safely
Installation
pip install botas
Quick start
from botas import BotApp
app = BotApp()
@app.on("message")
async def on_message(ctx):
await ctx.send(f"You said: {ctx.activity.text}")
app.start()
Environment variables
| Variable | Description |
|---|---|
CLIENT_ID |
Azure AD application (bot) ID |
CLIENT_SECRET |
Azure AD client secret |
TENANT_ID |
Azure AD tenant ID (or common) |
PORT |
HTTP listen port (default: 3978) |
Documentation
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file botas-0.1.77.tar.gz.
File metadata
- Download URL: botas-0.1.77.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc548578bfb6ff0eca1e5bde17667d88e1df6c6a9646059b3c31a840f2d6c04b
|
|
| MD5 |
11e749cf738989efff1943814ead04ab
|
|
| BLAKE2b-256 |
bed4e9ee467bc7d211bd0bb5d971b6ade99e0e63774db077258811eba5964bba
|
Provenance
The following attestation bundles were made for botas-0.1.77.tar.gz:
Publisher:
CD.yml on rido-min/botas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
botas-0.1.77.tar.gz -
Subject digest:
bc548578bfb6ff0eca1e5bde17667d88e1df6c6a9646059b3c31a840f2d6c04b - Sigstore transparency entry: 1295932177
- Sigstore integration time:
-
Permalink:
rido-min/botas@86dca2c007898a945519e232dd5a16b580c55dfa -
Branch / Tag:
refs/heads/release/v0.1 - Owner: https://github.com/rido-min
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
CD.yml@86dca2c007898a945519e232dd5a16b580c55dfa -
Trigger Event:
push
-
Statement type:
File details
Details for the file botas-0.1.77-py3-none-any.whl.
File metadata
- Download URL: botas-0.1.77-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62c325c27c8ac123fdb633f86b829ffb305e4e89fec06a44bec0db3855c9f559
|
|
| MD5 |
9c16b601f031ad90623a4a06b0d4b108
|
|
| BLAKE2b-256 |
5d723c51027c769473c03fa15e5d4aa817c7cf13a3546007b54dce0b3c5e4980
|
Provenance
The following attestation bundles were made for botas-0.1.77-py3-none-any.whl:
Publisher:
CD.yml on rido-min/botas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
botas-0.1.77-py3-none-any.whl -
Subject digest:
62c325c27c8ac123fdb633f86b829ffb305e4e89fec06a44bec0db3855c9f559 - Sigstore transparency entry: 1295932263
- Sigstore integration time:
-
Permalink:
rido-min/botas@86dca2c007898a945519e232dd5a16b580c55dfa -
Branch / Tag:
refs/heads/release/v0.1 - Owner: https://github.com/rido-min
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
CD.yml@86dca2c007898a945519e232dd5a16b580c55dfa -
Trigger Event:
push
-
Statement type: