Microsoft Azure Bot Service Client Library for Python
Project description
Microsoft Azure SDK for Python
This is the Microsoft Azure Bot Service Client Library. This package has been tested with Python 3.7+. For a more complete view of Azure libraries, see the azure sdk python release.
Disclaimer
Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For more information and questions, please refer to https://github.com/Azure/azure-sdk-for-python/issues/20691
Getting started
Prerequisites
- Python 3.7+ is required to use this package.
- Azure subscription
Install the package
pip install azure-mgmt-botservice
pip install azure-identity
Authentication
By default, Azure Active Directory token authentication depends on correct configure of following environment variables.
AZURE_CLIENT_ID
for Azure client ID.AZURE_TENANT_ID
for Azure tenant ID.AZURE_CLIENT_SECRET
for Azure client secret.
In addition, Azure subscription ID can be configured via environment variable AZURE_SUBSCRIPTION_ID
.
With above configuration, client can be authenticated by following code:
from azure.identity import DefaultAzureCredential
from azure.mgmt.botservice import AzureBotService
import os
sub_id = os.getenv("AZURE_SUBSCRIPTION_ID")
client = AzureBotService(credential=DefaultAzureCredential(), subscription_id=sub_id)
Examples
Code samples for this package can be found at Bot Service on docs.microsoft.com and Samples Repo
Troubleshooting
Next steps
Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the Issues section of the project.
Release History
2.0.0 (2023-01-12)
Features Added
- Added operation group EmailOperations
- Added operation group OperationResultsOperations
- Added operation group PrivateEndpointConnectionsOperations
- Added operation group PrivateLinkResourcesOperations
- Added operation group QnAMakerEndpointKeysOperations
- Model AlexaChannel has a new parameter etag
- Model AlexaChannel has a new parameter location
- Model AlexaChannel has a new parameter provisioning_state
- Model Bot has a new parameter zones
- Model BotChannel has a new parameter zones
- Model BotProperties has a new parameter all_settings
- Model BotProperties has a new parameter app_password_hint
- Model BotProperties has a new parameter cmek_encryption_status
- Model BotProperties has a new parameter disable_local_auth
- Model BotProperties has a new parameter is_developer_app_insights_api_key_set
- Model BotProperties has a new parameter is_streaming_supported
- Model BotProperties has a new parameter manifest_url
- Model BotProperties has a new parameter migration_token
- Model BotProperties has a new parameter msa_app_msi_resource_id
- Model BotProperties has a new parameter msa_app_tenant_id
- Model BotProperties has a new parameter msa_app_type
- Model BotProperties has a new parameter open_with_hint
- Model BotProperties has a new parameter parameters
- Model BotProperties has a new parameter private_endpoint_connections
- Model BotProperties has a new parameter provisioning_state
- Model BotProperties has a new parameter public_network_access
- Model BotProperties has a new parameter publishing_credentials
- Model BotProperties has a new parameter storage_resource_id
- Model BotProperties has a new parameter tenant_id
- Model Channel has a new parameter etag
- Model Channel has a new parameter location
- Model Channel has a new parameter provisioning_state
- Model CheckNameAvailabilityResponseBody has a new parameter abs_code
- Model ConnectionSetting has a new parameter zones
- Model ConnectionSettingProperties has a new parameter provisioning_state
- Model DirectLineChannel has a new parameter etag
- Model DirectLineChannel has a new parameter location
- Model DirectLineChannel has a new parameter provisioning_state
- Model DirectLineChannelProperties has a new parameter direct_line_embed_code
- Model DirectLineChannelProperties has a new parameter extension_key1
- Model DirectLineChannelProperties has a new parameter extension_key2
- Model DirectLineSite has a new parameter is_block_user_upload_enabled
- Model DirectLineSpeechChannel has a new parameter etag
- Model DirectLineSpeechChannel has a new parameter location
- Model DirectLineSpeechChannel has a new parameter provisioning_state
- Model DirectLineSpeechChannelProperties has a new parameter cognitive_service_region
- Model DirectLineSpeechChannelProperties has a new parameter cognitive_service_resource_id
- Model DirectLineSpeechChannelProperties has a new parameter cognitive_service_subscription_key
- Model EmailChannel has a new parameter etag
- Model EmailChannel has a new parameter location
- Model EmailChannel has a new parameter provisioning_state
- Model EmailChannelProperties has a new parameter auth_method
- Model EmailChannelProperties has a new parameter magic_code
- Model FacebookChannel has a new parameter etag
- Model FacebookChannel has a new parameter location
- Model FacebookChannel has a new parameter provisioning_state
- Model KikChannel has a new parameter etag
- Model KikChannel has a new parameter location
- Model KikChannel has a new parameter provisioning_state
- Model LineChannel has a new parameter etag
- Model LineChannel has a new parameter location
- Model LineChannel has a new parameter provisioning_state
- Model MsTeamsChannel has a new parameter etag
- Model MsTeamsChannel has a new parameter location
- Model MsTeamsChannel has a new parameter provisioning_state
- Model MsTeamsChannelProperties has a new parameter accepted_terms
- Model MsTeamsChannelProperties has a new parameter calling_webhook
- Model MsTeamsChannelProperties has a new parameter deployment_environment
- Model MsTeamsChannelProperties has a new parameter incoming_call_route
- Model Resource has a new parameter zones
- Model ServiceProviderParameter has a new parameter metadata
- Model SkypeChannel has a new parameter etag
- Model SkypeChannel has a new parameter location
- Model SkypeChannel has a new parameter provisioning_state
- Model SkypeChannelProperties has a new parameter incoming_call_route
- Model SlackChannel has a new parameter etag
- Model SlackChannel has a new parameter location
- Model SlackChannel has a new parameter provisioning_state
- Model SlackChannelProperties has a new parameter scopes
- Model SmsChannel has a new parameter etag
- Model SmsChannel has a new parameter location
- Model SmsChannel has a new parameter provisioning_state
- Model TelegramChannel has a new parameter etag
- Model TelegramChannel has a new parameter location
- Model TelegramChannel has a new parameter provisioning_state
- Model WebChatChannel has a new parameter etag
- Model WebChatChannel has a new parameter location
- Model WebChatChannel has a new parameter provisioning_state
Breaking Changes
- Model BotProperties no longer has parameter is_isolated
- Model DirectLineSpeechChannelProperties no longer has parameter cognitive_services_subscription_id
- Model MsTeamsChannelProperties no longer has parameter calling_web_hook
- Model WebChatSite has a new required parameter is_webchat_preview_enabled
- Model WebChatSite no longer has parameter enable_preview
2.0.0b4 (2022-11-30)
Features Added
- Added operation group EmailOperations
- Added operation group QnAMakerEndpointKeysOperations
- Model BotProperties has a new parameter tenant_id
- Model DirectLineChannelProperties has a new parameter extension_key1
- Model DirectLineChannelProperties has a new parameter extension_key2
- Model DirectLineSpeechChannelProperties has a new parameter cognitive_service_resource_id
- Model EmailChannelProperties has a new parameter auth_method
- Model EmailChannelProperties has a new parameter magic_code
- Model MsTeamsChannelProperties has a new parameter calling_webhook
Breaking Changes
- Model MsTeamsChannelProperties no longer has parameter calling_web_hook
2.0.0b3 (2022-06-27)
Bugfixes
- Fix multi inheritance problem for Model
Site
2.0.0b2 (2022-04-15)
Features
- Model ListChannelWithKeysResponse has a new parameter changed_time
- Model ListChannelWithKeysResponse has a new parameter entity_tag
- Model ListChannelWithKeysResponse has a new parameter provisioning_state
2.0.0b1 (2022-01-10)
Features
- Added operation group OperationResultsOperations
- Added operation group PrivateEndpointConnectionsOperations
- Added operation group PrivateLinkResourcesOperations
- Model AlexaChannel has a new parameter etag
- Model AlexaChannel has a new parameter location
- Model AlexaChannel has a new parameter provisioning_state
- Model Bot has a new parameter zones
- Model BotChannel has a new parameter zones
- Model BotProperties has a new parameter all_settings
- Model BotProperties has a new parameter app_password_hint
- Model BotProperties has a new parameter cmek_encryption_status
- Model BotProperties has a new parameter disable_local_auth
- Model BotProperties has a new parameter is_developer_app_insights_api_key_set
- Model BotProperties has a new parameter is_streaming_supported
- Model BotProperties has a new parameter manifest_url
- Model BotProperties has a new parameter migration_token
- Model BotProperties has a new parameter msa_app_msi_resource_id
- Model BotProperties has a new parameter msa_app_tenant_id
- Model BotProperties has a new parameter msa_app_type
- Model BotProperties has a new parameter open_with_hint
- Model BotProperties has a new parameter parameters
- Model BotProperties has a new parameter private_endpoint_connections
- Model BotProperties has a new parameter provisioning_state
- Model BotProperties has a new parameter public_network_access
- Model BotProperties has a new parameter publishing_credentials
- Model BotProperties has a new parameter storage_resource_id
- Model Channel has a new parameter etag
- Model Channel has a new parameter location
- Model Channel has a new parameter provisioning_state
- Model ConnectionSetting has a new parameter zones
- Model ConnectionSettingProperties has a new parameter id
- Model ConnectionSettingProperties has a new parameter name
- Model ConnectionSettingProperties has a new parameter provisioning_state
- Model DirectLineChannel has a new parameter etag
- Model DirectLineChannel has a new parameter location
- Model DirectLineChannel has a new parameter provisioning_state
- Model DirectLineChannelProperties has a new parameter direct_line_embed_code
- Model DirectLineSite has a new parameter is_block_user_upload_enabled
- Model DirectLineSpeechChannel has a new parameter etag
- Model DirectLineSpeechChannel has a new parameter location
- Model DirectLineSpeechChannel has a new parameter provisioning_state
- Model EmailChannel has a new parameter etag
- Model EmailChannel has a new parameter location
- Model EmailChannel has a new parameter provisioning_state
- Model FacebookChannel has a new parameter etag
- Model FacebookChannel has a new parameter location
- Model FacebookChannel has a new parameter provisioning_state
- Model KikChannel has a new parameter etag
- Model KikChannel has a new parameter location
- Model KikChannel has a new parameter provisioning_state
- Model LineChannel has a new parameter etag
- Model LineChannel has a new parameter location
- Model LineChannel has a new parameter provisioning_state
- Model MsTeamsChannel has a new parameter etag
- Model MsTeamsChannel has a new parameter location
- Model MsTeamsChannel has a new parameter provisioning_state
- Model MsTeamsChannelProperties has a new parameter accepted_terms
- Model MsTeamsChannelProperties has a new parameter deployment_environment
- Model MsTeamsChannelProperties has a new parameter incoming_call_route
- Model Resource has a new parameter zones
- Model ServiceProviderParameter has a new parameter metadata
- Model SkypeChannel has a new parameter etag
- Model SkypeChannel has a new parameter location
- Model SkypeChannel has a new parameter provisioning_state
- Model SkypeChannelProperties has a new parameter incoming_call_route
- Model SlackChannel has a new parameter etag
- Model SlackChannel has a new parameter location
- Model SlackChannel has a new parameter provisioning_state
- Model SlackChannelProperties has a new parameter scopes
- Model SmsChannel has a new parameter etag
- Model SmsChannel has a new parameter location
- Model SmsChannel has a new parameter provisioning_state
- Model TelegramChannel has a new parameter etag
- Model TelegramChannel has a new parameter location
- Model TelegramChannel has a new parameter provisioning_state
- Model WebChatChannel has a new parameter etag
- Model WebChatChannel has a new parameter location
- Model WebChatChannel has a new parameter provisioning_state
Breaking changes
- Model BotProperties no longer has parameter is_isolated
- Model DirectLineSpeechChannelProperties has a new required parameter cognitive_service_region
- Model DirectLineSpeechChannelProperties has a new required parameter cognitive_service_subscription_key
- Model DirectLineSpeechChannelProperties no longer has parameter cognitive_services_subscription_id
- Model WebChatSite has a new required parameter is_webchat_preview_enabled
- Model WebChatSite no longer has parameter enable_preview
1.0.0 (2021-05-20)
Features
- Model BotProperties has a new parameter schema_transformation_version
- Model BotProperties has a new parameter cmek_key_vault_url
- Model BotProperties has a new parameter is_isolated
- Model BotProperties has a new parameter is_cmek_enabled
- Added operation group HostSettingsOperations
1.0.0b1 (2020-11-20)
This is beta preview version.
This version uses a next-generation code generator that introduces important breaking changes, but also important new features (like unified authentication and async programming).
General breaking changes
-
Credential system has been completly revamped:
azure.common.credentials
ormsrestazure.azure_active_directory
instances are no longer supported, use theazure-identity
classes instead: https://pypi-hypernode.com/project/azure-identity/credentials
parameter has been renamedcredential
-
The
config
attribute no longer exists on a client, configuration should be passed as kwarg. Example:MyClient(credential, subscription_id, enable_logging=True)
. For a complete set of supported options, see the parameters accept in init documentation of azure-core -
You can't import a
version
module anymore, use__version__
instead -
Operations that used to return a
msrest.polling.LROPoller
now returns aazure.core.polling.LROPoller
and are prefixed withbegin_
. -
Exceptions tree have been simplified and most exceptions are now
azure.core.exceptions.HttpResponseError
(CloudError
has been removed). -
Most of the operation kwarg have changed. Some of the most noticeable:
raw
has been removed. Equivalent feature can be found usingcls
, a callback that will give access to internal HTTP response for advanced user- For a complete set of supported options, see the parameters accept in Request documentation of azure-core
General new features
- Type annotations support using
typing
. SDKs are mypy ready. - This client has now stable and official support for async. Check the
aio
namespace of your package to find the async client. - This client now support natively tracing library like OpenCensus or OpenTelemetry. See this tracing quickstart for an overview.
0.2.0 (2019-05-21)
Features
- Model DirectLineSite has a new parameter is_secure_site_enabled
- Model DirectLineSite has a new parameter trusted_origins
- Added operation group EnterpriseChannelsOperations
0.1.0 (2018-08-07)
- Initial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file azure-mgmt-botservice-2.0.0.zip
.
File metadata
- Download URL: azure-mgmt-botservice-2.0.0.zip
- Upload date:
- Size: 144.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.28.2 setuptools/58.1.0 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c04d27c527c19d9600a88215fae2ba524dc674455387b0d0e51722b5a6d6ba |
|
MD5 | d3edd8182b44a7292f0fa8b2340a2c0c |
|
BLAKE2b-256 | 77b5a9dc9413e69e2e1b31885771173cb70018847a4c2bcd2f53c6e375ae1cad |
File details
Details for the file azure_mgmt_botservice-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: azure_mgmt_botservice-2.0.0-py3-none-any.whl
- Upload date:
- Size: 126.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.28.2 setuptools/58.1.0 requests-toolbelt/0.10.1 tqdm/4.64.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d78d2d153ff26d32ac3498c0395b4d084e9bd2e63897363b58aec943caca05ea |
|
MD5 | 86514ffbd774c60fb6c796f194096c82 |
|
BLAKE2b-256 | a4ad3a3669a6b9ae3b1c9d828e286ac2867e3f107ff2ffa337a559e0d1981077 |