The Microsoft Bot Framework provides what you need to build and connect intelligent bots that interact naturally wherever your users are talking, from text/sms to Skype, Slack, Office 365 mail and other popular services.
Перейти к файлу
tracyboehrer d7cd937410
aiohttp 3.9.5 (#2127)
Co-authored-by: Tracy Boehrer <trboehre@microsoft.com>
2024-06-21 09:34:42 -05:00
.cache/v/cache fixes based on comments 2018-10-15 21:54:21 +02:00
.github Updated code owners (#1834) 2021-11-16 06:10:39 -08:00
doc SingleTenant support (#2055) 2024-02-13 10:05:33 -06:00
generators Resolved the inconsistency in response formats between the Python Echo bot template and the C# and JavaScript Echo bot templates. (#2124) 2024-06-11 11:29:50 -05:00
libraries aiohttp 3.9.5 (#2127) 2024-06-21 09:34:42 -05:00
pipelines Update botbuilder-python-ci.yml for Azure Pipelines 2024-05-23 11:20:41 -05:00
swagger Moved non-library code out of libraries (#2072) 2024-02-12 08:27:33 -06:00
tests --- (#2109) 2024-05-23 13:27:32 -05:00
.coveragerc Revert "Functional Test (#439)" (#505) 2019-12-13 10:07:24 -08:00
.gitignore Fixes AttributeError: module 'urllib3.connectionpool' has no attribute 'VerifiedHTTPSConnection' (#1994) 2023-05-23 07:14:04 -05:00
.pre-commit-config.yaml Axsuarez/pylint fix (#353) 2019-10-18 17:18:08 -07:00
.pylintrc Python 3.11 Pylint (#2060) 2024-01-16 11:04:51 -06:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT.md 2021-04-14 11:49:46 -07:00
Contributing.md Adding community docs as per guidelines (#1132) 2020-06-15 13:32:18 -07:00
LICENSE Initial commit 2018-01-10 15:07:12 -08:00
README.md Updated README with supported Python versions (#2113) 2024-05-23 16:15:16 -05:00
SECURITY.md Microsoft mandatory file (#1962) 2022-08-15 16:28:17 -05:00
UsingTestPyPI.md Create UsingTestPyPI.md (#1061) 2020-05-11 12:52:43 -07:00
old.pylintrc Python 3.11 Pylint (#2060) 2024-01-16 11:04:51 -06:00

README.md

Bot Framework SDK v4 Python

This repository contains code for the Python version of the Microsoft Bot Framework SDK, which is part of the Microsoft Bot Framework - a comprehensive framework for building enterprise-grade conversational AI experiences.

This SDK enables developers to model conversation and build sophisticated bot applications using Python. SDKs for JavaScript and .NET are also available.

To get started building bots using the SDK, see the Azure Bot Service Documentation.

For more information jump to a section below.

Build Status

Branch Description Build Status Coverage Status Code Style
Main 4.16.0 Builds Build Status Coverage Status Code style: black

Packages

Build Released Package
botbuilder-ai PyPI version
botbuilder-applicationinsights PyPI version
botbuilder-azure PyPI version
botbuilder-core PyPI version
botbuilder-dialogs PyPI version
botbuilder-schema PyPI version
botframework-connector PyPI version

Getting Started

To get started building bots using the SDK, see the Azure Bot Service Documentation.

The Bot Framework Samples includes a rich set of samples repository.

If you want to debug an issue, would like to contribute, or understand how the Bot Builder SDK works, instructions for building and testing the SDK are below.

Prerequisites

Python "Virtual Environments" allow Python packages to be installed in an isolated location for a particular application, rather than being installed globally, as such it is common practice to use them. Click here to learn more about creating and activating Virtual Environments in Python.

Clone

Clone a copy of the repo:

git clone https://github.com/Microsoft/botbuilder-python.git

Change to the SDK's directory:

cd botbuilder-python

Using the SDK locally

To use a local copy of the SDK you can link to these packages with the pip -e option.

pip install -e ./libraries/botbuilder-schema
pip install -e ./libraries/botframework-connector
pip install -e ./libraries/botframework-streaming
pip install -e ./libraries/botbuilder-core
pip install -e ./libraries/botbuilder-ai
pip install -e ./libraries/botbuilder-applicationinsights
pip install -e ./libraries/botbuilder-dialogs
pip install -e ./libraries/botbuilder-azure
pip install -e ./libraries/botbuilder-integration-applicationinsights-aiohttp
pip install -e ./libraries/botbuilder-adapters-slack
pip install -e ./libraries/botbuilder-integration-aiohttp
pip install -e ./libraries/botbuilder-testing

Running unit tests

First execute the following command from the root level of the repo:

pip install -r ./libraries/botframework-connector/tests/requirements.txt
pip install -r ./libraries/botbuilder-core/tests/requirements.txt
pip install -r ./libraries/botbuilder-ai/tests/requirements.txt

Then enter run pytest by simply typing it into your CLI:

pytest

This is the expected output:

============================= test session starts =============================
platform win32 -- Python 3.8.2, pytest-3.4.0, py-1.5.2, pluggy-0.6.0
rootdir: C:\projects\botbuilder-python, inifile:
plugins: cov-2.5.1
...

Getting support and providing feedback

Below are the various channels that are available to you for obtaining support and providing feedback. Please pay carful attention to which channel should be used for which type of content. e.g. general "how do I..." questions should be asked on Stack Overflow, Twitter or Gitter, with GitHub issues being for feature requests and bug reports.

Github issues

Github issues should be used for bugs and feature requests.

Stack overflow

Stack Overflow is a great place for getting high-quality answers. Our support team, as well as many of our community members are already on Stack Overflow providing answers to 'how-to' questions.

Azure Support

If you issues relates to Azure Bot Service, you can take advantage of the available Azure support options.

Twitter

We use the @msbotframework account on twitter for announcements and members from the development team watch for tweets for @msbotframework.

Gitter Chat Room

The Gitter Channel provides a place where the Community can get together and collaborate.

Contributing and our code of conduct

We welcome contributions and suggestions. Please see our contributing guidelines for more information.

This project has adopted the Microsoft Open Source Code of Conduct.

For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Contributing Code

In order to create pull requests, submitted code must pass pylint and black checks. Run both tools on every file you've changed.

For more information and installation instructions, see:

Reporting Security Issues

Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) at secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT License.