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.

Install using:

pip install google-transliteration-api

Note:

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!', lang_code='ru')
print(result)

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

Transliterate numerals

from google.transliteration import transliterate_numerals
result = transliterate_numerals('3210', lang_code='zh')
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.2.tar.gz (4.7 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.2-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google-transliteration-api-1.0.2.tar.gz
  • Upload date:
  • Size: 4.7 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.2.tar.gz
Algorithm Hash digest
SHA256 d73cc0437d8ba0e9de8ff67421f200705ad8417093d1ed6680d0916dbf56c099
MD5 da88d16707b10a794f2cdbdb69a8fbc1
BLAKE2b-256 e0f1f247bef48b21e4e28a9817c1cd0ee178b9baf8c9c8799a9bdc60ffcc85e1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: google_transliteration_api-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bb575341fcb83b14511e2a192e0578f674b476bf77a0e2e7f7d25edbbebb71d5
MD5 689a6826ab6381a63ff564e818234c26
BLAKE2b-256 f3f637d4f9dae23ffa8ec1f1655b12b979a646dd8b68ff036b13a55fcab17d1c

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