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.2.3.tar.gz (22.8 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.2.3-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: botas-0.2.3.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for botas-0.2.3.tar.gz
Algorithm Hash digest
SHA256 165d2f8bd05f8b8a2e423c80c1cd9c37406ce5d82118a34b2c9fda9db8faa6f7
MD5 81d12ee103718eacefa1a6abf7c0ab80
BLAKE2b-256 f711a6af0ecc91fa72688494f83a965cea950cd79285dd6808840ae8dff9ec97

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: botas-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for botas-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc2ec9d1cf2676237cd1239d6b59ee649ea9abc653cb6e929df65f2ccfb5347
MD5 a26cc91159f784f046a8652e9f72d18c
BLAKE2b-256 b0b0a65d6030f753c7499ab8af020301ffb4c291e2394bd3757dbae3838f7f71

See more details on using hashes here.

Provenance

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