Skip to main content

google trnaslate async for free

Project description


Python3637 packagecodecovhttpxPyPI versionstatus

Google translate for free -- based on httpx with proxy support. Let's hope it lasts.


pip install google-tr-async-free


  • Install (pip or whatever) necessary requirements, e.g. pip install httpx js2py loguru or pip install -r requirements.txt
  • Drop the file in any folder in your PYTHONPATH (check with import sys; print(sys.path)
  • or clone the repo (e.g., git clone or download and unzip) and change to the google-tr-free folder and do a python develop


import asyncio
loop = asyncio.new_event_loop()
arun = lambda x: loop.run_until_complete(x)

from google_tr_async import google_tr_async

_ = [google_tr_async('hello world'),
  google_tr_async('hello world', to_lang='de'),
  google_tr_async('hello world', to_lang='fr'),
  google_tr_async('hello world', to_lang='ja')]
res = arun(asyncio.gather(*_))

print(res[0])  # ->'你好,世界'
print(res[1])  # ->'Hallo Welt'
print(res[2])  # ->'Bonjour le monde'
print(res[3])  # ->'こんにちは世界'


  • Thanks to everyone whose code was used

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for google-tr-async-free, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size google_tr_async_free-0.0.2-py3-none-any.whl (5.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size google-tr-async-free-0.0.2.tar.gz (4.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page