Saravanan666/pypi-org huggingface dataset:
Package: botboy
BotBoyMultithreading & processing worker that executes functions and prints the
resultInstallationpip install botboyUsageInstantiationfrom botboy.core import BotBoy

name = 'Adder' # Name of thread/process
task = lambda x, y: x + y # Function to run on separate thread/process
params = [1, 2] # Task arguments
verbose = True # Logging

bot = BotBoy(name=name, task=task, params=params, verbose=verbose)

# You may also instantiate with the setup() method
name = 'Subtracter'
task = lambda x, y: x - y
params = [2, 3]

bot = BotBoy()
bot.setup(name=name, task=task, params=params)

# Print params
print(bot)

# Turn logging on
bot.verbose()

# Turn logging off
bot.silent()Execute taskresult = bot.execute()

# Wait for execution to finish
result = bot.execute(wait=True)

# Execute on separate process
result = bot.execute(is_process=True) # Wait does not work for processRepeat Task# Will repeat the assigned task amount of times with an interval inbetween
results = bot.repeat(amt=2, interval=2, wait=True, is_process=False)Gettersprint(bot.name())
print(bot.task())
print(bot.params())
print(bot.result()) # Result will be None unless task was executed

# Or print all params together
print(bot)Store result in a file or provide a path# Store result in a file at current directory
bot.save('test.txt')

# Store result at path
import os
bot.save(os.getcwd() + '/test2.txt')Run multiple tasks with Sequencerfrom botboy.core import BotBoy, Sequencer

tasks = [lambda x, y: x + y, lambda x, y: x - y, lambda x, y: x * y]
params = [[1, 2], [3, 4], [5, 6]]

# Create list of BotBoys
bots = Sequencer.pack(tasks=tasks, params=params, verbose=True)

# Instantiate
seq = Sequencer(bots)

# Retrieve results
# Default is false (runs tasks on threads)
# Set to true to run each task on process
results = seq(is_process=False)TestRuns the tests on the BotBoy Modulemake test-init: Test Initialization
make test-wrapper: Test _wrapper method
make test-client: Test client methods
make test-sequencer: Test Sequencer
Package: botbuilder-adapters-slack
A dialog stack based conversation manager for Microsoft BotBuilder.How to Installpipinstallbotbuilder-adapters-slackDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-ai
Cognitive services extensions for Microsoft BotBuilder.How to Installpipinstallbotbuilder-aiDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-applicationinsights
Within the Bot Framework, BotBuilder-ApplicationInsights enables the Azure Application Insights service.Application Insights is an extensible Application Performance Management (APM) service for developers on multiple platforms.
Use it to monitor your live bot application. It includes powerful analytics tools to help you diagnose issues and to understand
what users actually do with your bot.How to Installpipinstallbotbuilder-applicationinsightsDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-azure
Azure extensions for Microsoft BotBuilder.How to Installpipinstallbotbuilder-azureDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-community-dialogs-prompts
Dialog PromptsThis is a (currently experimental) suite of dialog prompts that uses Microsoft's recognizer text suite to recognize certain types of input during a dialog prompt. Microsoft's Bot Framework team has implemented a handful of prompts using recognizers from the recognizer text suite. This library is meant to fill the gaps.InstallationYou can install this library via PIP:pip install botbuilder-community-dialogs-promptsYou can then import required types, for example:frombotbuilder.community.dialogs.promptsimportNumberWithUnitPrompt,NumberWithUnitPromptTypeNumber with UnitThe number with unit prompt allows you to prompt for four different unit types:CurrencyTemperatureAgeDimension (eg. miles / meters)dialogs.add(newNumberWithUnitPrompt('numberPrompt',NumberWithUnitPromptType.Currency);Then, you can call the bot by specifying your PromptOptions and calling PromptAsync.options=PromptOptions(prompt=Activity(type=ActivityTypes.message,text="Enter the curreny info"))awaitstep_context.prompt("numberprompt",options)The prompt will return a NumberWithUnitResult.The object contains a value and unit type.
For example, if a user enters "twenty three dollars" when you are using the Currency prompt type, the resulting NumberWithUnitResult object will have Unit: "Dollar", Value: "23". Below is an example of how you might use this result.result=f"currency :{turn_context.result.value}and unit :{turn_context.result.unit}"awaitturn_context.send_activity(result)Number with TypeNumber with type allows you to accept numbers from the follow type enum:OrdinalPercentagedialogs.add(newNumberWithTypePrompt('numberPrompt',NumberWithTypePromptType.Ordinal);The prompt will a return a result based on the NumberWithTypePromptType type.
For example , If user enters “eleventh” Ordinal type return the result as 11.
Below is an example of how you might use this result.result=step_context.resultawaitturn_context.send_activity(result)Phone NumberThePhoneNumberPromptwill extract a phone number from a message from the user.dialogs.add(newPhoneNumberPrompt('phprompt');ExampleUser:Myphonenumberis1(877)609-2233PhoneNumberPromptreturnas1(877)609-2233Email AddressTheEmailPromptwill extract an email address from a message from the user.dialogs.add(newEmailPrompt('eprompt');ExampleUser:Myemailidisr.vinoth@live.comEmailPromptreturnasr.vinoth@live.comInternet ProtocolsTheInternetProtocolPromptwill extract one of the following types based on which InternetProtocolPromptType enum value is passed in:IPAddressURLdialogs.add(InternetProtocolPrompt("urlprompt",InternetProtocolPromptType.URL))ExampleUser:Myfavoritewebsiteishttp://rvinothrajendran.github.io/InternetProtocolPromptreturnashttp://rvinothrajendran.github.io/GUIDTheGUIDPromptwill extract a GUID from a message from the user.dialogs.add(newGuidPrompt('gprompt');ExampleUser:myazureidis"7d7b0205-9411-4a29-89ac-b9cd905886fa"GUIDPromptreturnas"7d7b0205-9411-4a29-89ac-b9cd905886fa"
Package: botbuilder-core
Within the Bot Framework, BotBuilder-core enables you to build bots that exchange messages with users on channels that are configured in the Bot Framework Portal.How to Installpipinstallbotbuilder-coreDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-dialogs
A dialog stack based conversation manager for Microsoft BotBuilder.How to Installpipinstallbotbuilder-dialogsDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-integration-aiohttp
Within the Bot Framework, This library enables you to integrate your bot within an aiohttp web application.How to Installpipinstallbotbuilder-integration-aiohttpDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-integration-applicationinsights-aiohttp
Within the Bot Framework, BotBuilder-ApplicationInsights enables the Azure Application Insights service.Application Insights is an extensible Application Performance Management (APM) service for developers on multiple platforms.
Use it to monitor your live bot application. It includes powerful analytics tools to help you diagnose issues and to understand
what users actually do with your bot.How to Installpipinstallbotbuilder-integration-applicationinsights-aiohttpDocumentation/WikiYou can find more information on the botbuilder-python project by visiting ourWiki.RequirementsPython >= 3.7.0Source CodeThe latest developer version is available in a github repository:https://github.com/Microsoft/botbuilder-python/ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.Reporting Security IssuesSecurity issues and bugs should be reported privately, via email, to the Microsoft Security
Response Center (MSRC) atsecure@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 theMSRC PGPkey, can be found in
theSecurity TechCenter.LicenseCopyright (c) Microsoft Corporation. All rights reserved.Licensed under theMITLicense.
Package: botbuilder-sangamam-cognitive-text-translate
Translate MiddlewareThe Translate Middleware library is a use to translate text using cognitive services translator.Cognitive Services Translator is a cloud-based machine translation service you can to translate text in with a simple REST API callInstallingpip install botbuilder-sangamam-cognitive-text-translateUsageAll middleware is created and used in the same way. For example, import theTranslateMiddlewareclass from the package, and add it to your bot adapter:from botbuilder.sangamam.cognitive.text.translate import TranslateMiddleware , TranslateSettings

translate_settings = TranslateSettings()
translate_settings.subscription_key = ''
translate_settings.from_lang = 'en'
translate_settings.to_lang = ['de','it','ta']
translate_settings.subscription_region = ''

adapter.use(TranslateMiddleware(translate_settings));When used, theturn_stateon theTurnContextwill have a property namedtranslate_response, which will be an return an TranslateResponse object.Supported middleware classes include:ClassProperty/Properties onturn_stateTranslateMiddlewarecontext.turn_state.get("translate_response")TranslateServiceTranslateService is use to translate text using cognitive services translator without Middleware.from botbuilder.sangamam.cognitive.text.translate import TranslateService , TranslateSettings ,TranslateResponse

translate_settings = TranslateSettings()
translate_settings.subscription_key = ''
translate_settings.from_lang = 'en'
translate_settings.to_lang = ['de','it','ta']
translate_settings.subscription_region = ''


//call the translate service 

service = TranslateService(translate_settings)
response = service.translate_text('hello')
Package: botbuilder-sangam-cognitive-text-translate
Translate MiddlewareThe Translate Middleware library is a use to translate text using cognitive services translator.Cognitive Services Translator is a cloud-based machine translation service you can to translate text in with a simple REST API callInstallingpip install botbuilder-sangam-cognitive-text-translateUsageAll middleware is created and used in the same way. For example, import theTranslateMiddlewareclass from the package, and add it to your bot adapter:from botbuilder.sangam.cognitive.text.translate import TranslateMiddleware , TranslateSettings

translate_settings = TranslateSettings()
translate_settings.subscription_key = ''
translate_settings.from_lang = 'en'
translate_settings.to_lang = ['de','it','ta']
translate_settings.subscription_region = ''

adapter.use(TranslateMiddleware(translate_settings));When used, theturn_stateon theTurnContextwill have a property namedtranslate_response, which will be an return an TranslateResponse object.Supported middleware classes include:ClassProperty/Properties onturn_stateTranslateMiddlewarecontext.turn_state.get("translate_response")TranslateServiceTranslateService is use to translate text using cognitive services translator without Middleware.from botbuilder.sangam.cognitive.text.translate import TranslateService , TranslateSettings ,TranslateResponse

translate_settings = TranslateSettings()
translate_settings.subscription_key = ''
translate_settings.from_lang = 'en'
translate_settings.to_lang = ['de','it','ta']
translate_settings.subscription_region = ''


//call the translate service 

service = TranslateService(translate_settings)
response = service.translate_text('hello')
Package: botbuilder-sangam-dialogs-prompt
Dialog PromptsThis package contains additional Inputs , beyond those offered out of the box by the Bot Framework SDK.AdaptiveCardPromptThe AdaptiveCardPrompt is use in waterfallDialog to receive adaptive card event.Installingpip install botbuilder-sangam-dialogs-promptUsageYou can then import required types, for example:frombotbuilder.sangam.dialogs.prompt.adaptiveimportAdaptiveCardPromptself.dialog_set.add(AdaptiveCardPrompt("adaptive_prompt"))Then, you can call the bot by specifying your PromptOptions and calling PromptAsync.asyncdefadaptive_card(self,waterfall_step:WaterfallStepContext):# card = pass adaptive card informationmessage=Activity(text="Here is an Adaptive Card:",type=ActivityTypes.message,attachments=[CardFactory.adaptive_card(card)],)prompt_options=PromptOptions()prompt_options.prompt=messageprompt_options.Type=ActivityTypes.messagereturnawaitwaterfall_step.prompt("adaptive_prompt",prompt_options)