Skip to main content

Google Transliterate API for Python

Project description

Google Transliteration - Python API

A Python library to use Google Transliterate API which powers the G Input Tools.
(Do not confuse with Google Translate)

Install using:

pip install google-transliteration-api

Note: This is not Google's official library since Google has deprecated Input Tools API.

Usage

Check here for list of supported languages.

Get suggestions for a word

from google.transliteration import transliterate_word
suggestions = transliterate_word('America', lang_code='ja')
print(suggestions)

['アメリカ', '米国', '米', '亜米利加', '亜墨利加', '米利堅']

The above transliterates the word 'America' into Japanese script and returns a list of possible suggestions.

Transliterate a sentence or text

(Experimental)

from google.transliteration import transliterate_text
result = transliterate_text('Hello comrade!', 'ru')
print(result)

хелло комраде!


Similar works


Please feel free to contribute by Pull Requests or raise an issue.


DMCA & Disclaimer

If you're Google and want us to take down the API, please raise an issue mentioning the main contributors.

Project details


Download files

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

Source Distribution

google-transliteration-api-1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_transliteration_api-1.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file google-transliteration-api-1.0.tar.gz.

File metadata

  • Download URL: google-transliteration-api-1.0.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for google-transliteration-api-1.0.tar.gz
Algorithm Hash digest
SHA256 d9074a75807af84338557e4b53c9445f6f8ccd1985ef6e9574f84829aa8f2ada
MD5 146b11d5e93519d373aba99e55c567e1
BLAKE2b-256 9b410542d5bd112d6f9674e55d66b2e1f525bbcd4ea3f41db0d4284bb3d83cd6

See more details on using hashes here.

File details

Details for the file google_transliteration_api-1.0-py3-none-any.whl.

File metadata

  • Download URL: google_transliteration_api-1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for google_transliteration_api-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3725357789a095b4adc293b0d62ae59a7b38ec75cf6c75238e1ad5107571c917
MD5 4c6f4d3866f5bfde5f38758168b7c7b6
BLAKE2b-256 62d7005b79d1e448f79d724a457fb5b1558e2e3afdc42581c864a96bf9d90074

See more details on using hashes here.

Supported by

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