from microsoft_translator import translator
trans = translator.translator(credential code)
print (trans.translate("how are you", "en", "fr"))
Most of code from the example of MicrosoftTranslator https://github.com/MicrosoftTranslator/PythonConsole
This is the README file for the project.
The file should use UTF-8 encoding and be written using reStructuredText <http://docutils.sourceforge.net/rst.html>
_. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.
Typical contents for this file would include an overview of the project, basic usage examples, etc. Generally, including the project changelog in here is not a good idea, although a simple "What's New" section for the most recent version may be appropriate.