|
1 | 1 | # 
|
2 | 2 |
|
3 |
| -### [Click here to find out what's new with Bot Framework](https://docs.microsoft.com/en-us/azure/bot-service/what-is-new?view=azure-bot-service-4.0) |
| 3 | +### [What's new with Bot Framework](https://docs.microsoft.com/en-us/azure/bot-service/what-is-new?view=azure-bot-service-4.0) |
4 | 4 |
|
5 |
| -# Bot Framework SDK v4 for Python |
6 |
| -[](https://fuselabs.visualstudio.com/SDK_v4/_build/latest?definitionId=771&branchName=master) |
7 |
| -[](https://github.com/Microsoft/botbuilder-python/wiki/Roadmap) |
8 |
| -[](https://coveralls.io/github/microsoft/botbuilder-python?branch=HEAD) |
9 |
| -[](https://github.com/psf/black) |
10 |
| -[](https://github.com/Microsoft/botbuilder-python/blob/master/LICENSE) |
11 |
| -[](https://gitter.im/Microsoft/BotBuilder) |
| 5 | +This repository contains code for the Python version of the [Microsoft Bot Framework SDK](https://github.com/Microsoft/botframework-sdk), which is part of the Microsoft Bot Framework - a comprehensive framework for building enterprise-grade conversational AI experiences. |
12 | 6 |
|
13 |
| -This repository contains code for the Python version of the [Microsoft Bot Framework SDK](https://github.com/Microsoft/botbuilder). The Bot Framework SDK v4 enables developers to model conversation and build sophisticated bot applications using Python. This Python version is GA and ready for production usage. |
| 7 | +This SDK enables developers to model conversation and build sophisticated bot applications using Python. SDKs for [JavaScript](https://github.com/Microsoft/botbuilder-js), [.NET](https://github.com/Microsoft/botbuilder-dotnet) and [Java (preview)](https://github.com/Microsoft/botbuilder-java) are also available. |
14 | 8 |
|
15 |
| -This repo is part the [Microsoft Bot Framework](https://github.com/Microsoft/botframework) - a comprehensive framework for building enterprise-grade conversational AI experiences. |
| 9 | +To get started building bots using the SDK, see the [Azure Bot Service Documentation](https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0). |
16 | 10 |
|
17 |
| -In addition to the Python SDK, Bot Builder supports creating bots in other popular programming languages like [.Net SDK](https://github.com/Microsoft/botbuilder-dotnet), [JavaScript](https://github.com/Microsoft/botbuilder-js), and [Java](https://github.com/Microsoft/botbuilder-java). |
| 11 | +For more information jump to a section below. |
18 | 12 |
|
19 |
| -To get started see the [Azure Bot Service Documentation](https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0) for the v4 SDK. |
| 13 | +* [Build status](#build-status) |
| 14 | +* [Packages](#packages) |
| 15 | +* [Getting started](#getting-started) |
| 16 | +* [Getting support and providing feedback](#getting-support-and-providing-feedback) |
| 17 | +* [Contributing and our code of conduct](contributing-and-our-code-of-conduct) |
| 18 | +* [Reporting security sssues](#reporting-security-issues) |
| 19 | + |
| 20 | +## Build Status |
| 21 | + |
| 22 | +| Branch | Description | Build Status | Coverage Status | Code Style | |
| 23 | + |----|---------------|--------------|-----------------|--| |
| 24 | +| Master | 4.10.* Preview Builds | [](https://fuselabs.visualstudio.com/SDK_v4/_build/latest?definitionId=771&branchName=master) | [](https://coveralls.io/github/microsoft/botbuilder-python?branch=HEAD) | [](https://github.com/psf/black) | |
20 | 25 |
|
21 | 26 | ## Packages
|
22 | 27 |
|
23 |
| -- [](https://pypi.org/project/botbuilder-ai/) botbuilder-ai |
24 |
| -- [](https://pypi.org/project/botbuilder-applicationinsights/) botbuilder-applicationinsights |
25 |
| -- [](https://pypi.org/project/botbuilder-azure/) botbuilder-azure |
26 |
| -- [](https://pypi.org/project/botbuilder-core/) botbuilder-core |
27 |
| -- [](https://pypi.org/project/botbuilder-dialogs/) botbuilder-dialogs |
28 |
| -- [](https://pypi.org/project/botbuilder-schema/) botbuilder-schema |
29 |
| -- [](https://pypi.org/project/botframework-connector/) botframework-connector |
30 |
| - |
31 |
| -## Contributing |
32 |
| -This project welcomes contributions and suggestions. Most contributions require you to agree to a |
33 |
| -Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us |
34 |
| -the rights to use your contribution. For details, visit https://cla.microsoft.com. |
35 |
| -When you submit a pull request, a CLA-bot will automatically determine whether you need to provide |
36 |
| -a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions |
37 |
| -provided by the bot. You will only need to do this once across all repos using our CLA. |
38 |
| -This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). |
39 |
| -For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or |
40 |
| -contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. |
| 28 | +| Build | Released Package | |
| 29 | + |----|---------------| |
| 30 | +| botbuilder-ai | [](https://pypi.org/project/botbuilder-ai/) | |
| 31 | +| botbuilder-applicationinsights | [](https://pypi.org/project/botbuilder-applicationinsights/) | |
| 32 | +| botbuilder-azure | [](https://pypi.org/project/botbuilder-azure/) | |
| 33 | +| botbuilder-core | [](https://pypi.org/project/botbuilder-core/) | |
| 34 | +| botbuilder-dialogs | [](https://pypi.org/project/botbuilder-dialogs/) | |
| 35 | +| botbuilder-schema | [](https://pypi.org/project/botbuilder-schema/) | |
| 36 | +| botframework-connector | [](https://pypi.org/project/botframework-connector/) | |
| 37 | + |
| 38 | +## Getting Started |
| 39 | +To get started building bots using the SDK, see the [Azure Bot Service Documentation](https://docs.microsoft.com/en-us/azure/bot-service/?view=azure-bot-service-4.0). |
| 40 | + |
| 41 | +The [Bot Framework Samples](https://github.com/microsoft/botbuilder-samples) includes a rich set of samples repository. |
| 42 | + |
| 43 | +If you want to debug an issue, would like to [contribute](#contributing), or understand how the Bot Builder SDK works, instructions for building and testing the SDK are below. |
| 44 | + |
| 45 | +### Prerequisites |
| 46 | +- [Git](https://git-scm.com/downloads) |
| 47 | +- [Python 3.8.2](https://www.python.org/downloads/) |
| 48 | + |
| 49 | +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](https://packaging.python.org/tutorials/installing-packages/#creating-virtual-environments) to learn more about creating _and activating_ Virtual Environments in Python. |
| 50 | + |
| 51 | +### Clone |
| 52 | +Clone a copy of the repo: |
| 53 | +```bash |
| 54 | +git clone https://github.com/Microsoft/botbuilder-python.git |
| 55 | +``` |
| 56 | +Change to the SDK's directory: |
| 57 | +```bash |
| 58 | +cd botbuilder-python |
| 59 | +``` |
| 60 | + |
| 61 | +### Using the SDK locally |
| 62 | + |
| 63 | +You will need the following 3 packages installed in your environment: |
| 64 | +- [botframework-connector](https://pypi.org/project/botframework-connector/) |
| 65 | +- [botbuilder-core](https://pypi.org/project/botbuilder-core/) |
| 66 | +- [botbuilder-schema](https://pypi.org/project/botbuilder-schema/) |
| 67 | + |
| 68 | +To use a local copy of the SDK you can link to these packages with the pip -e option. |
| 69 | + |
| 70 | +```bash |
| 71 | +pip install -e ./libraries/botbuilder-schema |
| 72 | +pip install -e ./libraries/botframework-connector |
| 73 | +pip install -e ./libraries/botbuilder-core |
| 74 | +pip install -e ./libraries/botbuilder-integration-aiohttp |
| 75 | +pip install -e ./libraries/botbuilder-ai |
| 76 | +pip install -e ./libraries/botbuilder-applicationinsights |
| 77 | +pip install -e ./libraries/botbuilder-integration-applicationinsights-aiohttp |
| 78 | +pip install -e ./libraries/botbuilder-dialogs |
| 79 | +pip install -e ./libraries/botbuilder-azure |
| 80 | +pip install -e ./libraries/botbuilder-adapters-slack |
| 81 | +pip install -e ./libraries/botbuilder-testing |
| 82 | +``` |
| 83 | + |
| 84 | +### Running unit tests |
| 85 | +First execute the following command from the root level of the repo: |
| 86 | +```bash |
| 87 | +pip install -r ./libraries/botframework-connector/tests/requirements.txt |
| 88 | +pip install -r ./libraries/botbuilder-core/tests/requirements.txt |
| 89 | +pip install -r ./libraries/botbuilder-ai/tests/requirements.txt |
| 90 | +``` |
| 91 | + |
| 92 | +Then enter run pytest by simply typing it into your CLI: |
| 93 | + |
| 94 | +```bash |
| 95 | +pytest |
| 96 | +``` |
| 97 | + |
| 98 | +This is the expected output: |
| 99 | +```bash |
| 100 | +============================= test session starts ============================= |
| 101 | +platform win32 -- Python 3.8.2, pytest-3.4.0, py-1.5.2, pluggy-0.6.0 |
| 102 | +rootdir: C:\projects\botbuilder-python, inifile: |
| 103 | +plugins: cov-2.5.1 |
| 104 | +... |
| 105 | +``` |
| 106 | + |
| 107 | +## Getting support and providing feedback |
| 108 | +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. |
| 109 | + |
| 110 | +### Github issues |
| 111 | +[Github issues](https://github.com/Microsoft/botbuilder-python/issues) should be used for bugs and feature requests. |
| 112 | + |
| 113 | +### Stack overflow |
| 114 | +[Stack Overflow](https://stackoverflow.com/questions/tagged/botframework) 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. |
| 115 | + |
| 116 | +### Azure Support |
| 117 | +If you issues relates to [Azure Bot Service](https://azure.microsoft.com/en-gb/services/bot-service/), you can take advantage of the available [Azure support options](https://azure.microsoft.com/en-us/support/options/). |
| 118 | + |
| 119 | +### Twitter |
| 120 | +We use the [@botframework](https://twitter.com/botframework) account on twitter for announcements and members from the development team watch for tweets for @botframework. |
| 121 | + |
| 122 | +### Gitter Chat Room |
| 123 | +The [Gitter Channel](https://gitter.im/Microsoft/BotBuilder) provides a place where the Community can get together and collaborate. |
| 124 | + |
| 125 | +## Contributing and our code of conduct |
| 126 | +We welcome contributions and suggestions. Please see our [contributing guidelines](./contributing.md) for more information. |
| 127 | + |
| 128 | +This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). |
| 129 | +For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact |
| 130 | + [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. |
41 | 131 |
|
42 | 132 | ## Reporting Security Issues
|
43 |
| -Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) at [secure@microsoft.com](mailto: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](https://technet.microsoft.com/en-us/security/dn606155) key, can be found in the [Security TechCenter](https://technet.microsoft.com/en-us/security/default). |
| 133 | +Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) |
| 134 | +at [secure@microsoft.com](mailto:secure@microsoft.com). You should receive a response within 24 hours. If for some |
| 135 | + reason you do not, please follow up via email to ensure we received your original message. Further information, |
| 136 | + including the [MSRC PGP](https://technet.microsoft.com/en-us/security/dn606155) key, can be found in the |
| 137 | +[Security TechCenter](https://technet.microsoft.com/en-us/security/default). |
44 | 138 |
|
45 | 139 | Copyright (c) Microsoft Corporation. All rights reserved.
|
| 140 | + |
| 141 | +Licensed under the [MIT](./LICENSE.md) License. |
| 142 | + |
| 143 | + |
0 commit comments