Package: aiogoogletrans
aiogoogletrans is a [googletrans](https://github.com/ssut/py-googletrans) fork with asyncio support.Compatible with Python 3.6+FeaturesasyncioFast and reliable - it uses the same servers that
translate.google.com usesAuto language detectionBulk translationsCustomizable service URLInstallationTo install, either use things like pip with the package “aiogoogletrans”
or download the package and put the “aiogoogletrans” directory into your
python path. Anyway, it is noteworthy that, this just requires two
modules: requests and future.$pipinstallaiogoogletransBasic UsageIf source language is not given, google translate attempts to detect the
source language.>>>fromaiogoogletransimportTranslator>>>translator=Translator()>>>importasyncio>>>loop=asyncio.get_event_loop()>>>loop.run_until_complete(translator.translate('안녕하세요.'))# <Translated src=ko confidence=1.0 dest=en text=Good evening. pronunciation=Good evening.>>>>loop.run_until_complete(translator.translate('안녕하세요.',dest='ja'))# <Translated src=ko confidence=1.0 dest=ja text=こんにちは。 pronunciation=Kon'nichiwa.>>>>loop.run_until_complete(translator.translate('veritas lux mea',src='la'))# <Translated src=la confidence=1.0 dest=en text=The truth is my light pronunciation=The truth is my light>Customize service URLYou can use another google translate domain for translation. If multiple
URLs are provided it then randomly chooses a domain.>>>fromaiogoogletransimportTranslator>>>translator=Translator(service_urls=['translate.google.com','translate.google.co.kr',])Advanced Usage (Bulk)Array can be used to translate a batch of strings in a single method
call and a single HTTP session. The exact same method shown above work
for arrays as well.>>>translations=awaittranslator.translate(['The quick brown fox','jumps over','the lazy dog'],dest='ko')>>>fortranslationintranslations:...print(translation.origin,' -> ',translation.text)# The quick brown fox  ->  빠른 갈색 여우# jumps over  ->  이상 점프# the lazy dog  ->  게으른 개GoogleTrans as a command line application$translate-husage:translate[-h][-dDEST][-sSRC][-c]textPythonGoogleTranslatorasacommand-linetoolpositionalarguments:textThetextyouwanttotranslate.optionalarguments:-h,--helpshowthishelpmessageandexit-dDEST,--destDESTThedestinationlanguageyouwanttotranslate.(Default:en)-sSRC,--srcSRCThesourcelanguageyouwanttotranslate.(Default:auto)-c,--detect$translate"veritas lux mea"-sla-den[veritas]veritasluxmea->[en]Thetruthismylight[pron.]Thetruthismylight$translate-c"안녕하세요."[ko,1]안녕하세요.Note on library usageThe maximum character limit on a single text is 15k.Due to limitations of the web version of google translate, this API
does not guarantee that the library would work properly at all times.
(so please use this library if you don’t care about stability.)If you want to use a stable API, I highly recommend you to useGoogle’s official translate
API.If you get HTTP 5xx error or errors like #6, it’s probably because
Google has banned your client IP address.VersioningThis library followsSemantic Versioningfrom
v2.0.0. Any release versioned 0.x.y is subject to backwards incompatible
changes at any time.Submitting a Pull RequestContributions to this library are always welcome and highly encouraged
:)Fork this project.Create a topic branch.Implement your feature or bug fix.Runpytest.Add a test for yout feature or bug fix.Run step 4 again. If your changes are not 100% covered, go back to
step 5.Commit and push your changes.Submit a pull request.LicenseGoogletrans is licensed under the MIT License. The terms are as
follows:The MIT License (MIT)

Copyright (c) 2015 Simone Esposito

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.