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.80.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.80-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file botas-0.1.80.tar.gz.

File metadata

  • Download URL: botas-0.1.80.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.80.tar.gz
Algorithm Hash digest
SHA256 e345dd947bc6888ab6a7594278b9e10c216eaffad9a71912a5c7ded18b604cf3
MD5 e4dd223761832283c3c14938aa26156e
BLAKE2b-256 470eed07f19975642ccb623b17db83d8acb03280036e8c9b56791b85c969edde

See more details on using hashes here.

Provenance

The following attestation bundles were made for botas-0.1.80.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.80-py3-none-any.whl.

File metadata

  • Download URL: botas-0.1.80-py3-none-any.whl
  • Upload date:
  • Size: 17.8 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.80-py3-none-any.whl
Algorithm Hash digest
SHA256 1e5c36635ba6ece8db7cf9b26098b07fafe6dabed29a0a6d719411de1159f7f3
MD5 6be0ac61c1a9f4e50a73291de6a07c02
BLAKE2b-256 0092246ae6a8625a8a6bbbadf23030b367fab378ca740b88042fa826ee1eafa6

See more details on using hashes here.

Provenance

The following attestation bundles were made for botas-0.1.80-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