Skip to main content

auto-translation

auto-translation is a simple python library to translate any other language or transform it to speech with google traduction , all that using the user's Chrome browser with selenium in hidden mode , mean time to return the translation or speech 15 seconds

Installation :

| $ pip install auto-translation |

Simple usage :

| >>> from auto_browser.selenium_translation import Chrome |

| >>> test=Chrome() |

| >>> print( test.translate_text(text='Bonjour',from_lang='fr',to_lang='fr') )|

| >>> Good morning |

Methods :

Methods Return
translation_url(from_lang=str,to_lang=str) url of google translation (str)
translation_text_url(text=str,from_lang=str,to_lang=str) url of the translation needed (str)
translate_text(text=str,from_lang=str,to_lang=str) translation of text (str)
text_2_speech(text=str, language=str) None , text speech
translation_2_speech(text=str,from_lang=str,to_lang=str) None , translation speech

Note :

Use language codes >>> ISO-639 Language Codes

example :
Arabic:ar
French:fr

Download files

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

Source Distribution

auto_translation-0.1.5.tar.gz (2.7 kB view details)

Uploaded Source

File details

Details for the file auto_translation-0.1.5.tar.gz.

File metadata

  • Download URL: auto_translation-0.1.5.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.7.4

File hashes

Hashes for auto_translation-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6322606eed7a99b92595b77b871ea29a57845f1b5566f388b57fdd80aa8dd2d1
MD5 7c10c13ca62f2cccfe55bc5391b9b357
BLAKE2b-256 6aa98e99845c7b9998947bd236a5f6decf558a45263c706cac3e15526e9d1f75

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page