Skip to main content

Lightweight library for building Microsoft Bot Framework bots - Python

Project description

botas logo

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

botas-0.1.77.tar.gz (22.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

botas-0.1.77-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

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

Hashes for botas-0.1.77.tar.gz
Algorithm Hash digest
SHA256 bc548578bfb6ff0eca1e5bde17667d88e1df6c6a9646059b3c31a840f2d6c04b
MD5 11e749cf738989efff1943814ead04ab
BLAKE2b-256 bed4e9ee467bc7d211bd0bb5d971b6ade99e0e63774db077258811eba5964bba

See more details on using hashes here.

Provenance

The following attestation bundles were made for botas-0.1.77.tar.gz:

Publisher: CD.yml on rido-min/botas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for botas-0.1.77-py3-none-any.whl
Algorithm Hash digest
SHA256 62c325c27c8ac123fdb633f86b829ffb305e4e89fec06a44bec0db3855c9f559
MD5 9c16b601f031ad90623a4a06b0d4b108
BLAKE2b-256 5d723c51027c769473c03fa15e5d4aa817c7cf13a3546007b54dce0b3c5e4980

See more details on using hashes here.

Provenance

The following attestation bundles were made for botas-0.1.77-py3-none-any.whl:

Publisher: CD.yml on rido-min/botas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page