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!', '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.1.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.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google-transliteration-api-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 a464f90f39f4611f60961db5f892ec4d0eb1a55f1d3a0f6721809d08b5b34eac
MD5 98f28e458895bc730a82c8e5bae06eaf
BLAKE2b-256 2a8b9b1c04cdb81a570b3486d645b189e9214e41d7bd2e618610cbc7c2993040

See more details on using hashes here.

File details

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

File metadata

  • Download URL: google_transliteration_api-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab4f5590efc10c94b5b0106ad1e9bcae06fbe52a9c765266e188bd1cbae4e6c5
MD5 01938b22c59bbb4ef3074512cda83458
BLAKE2b-256 d65c0b6438c7ec4d9f41c3552f907a4b81e94a58a7edf9ec43cdeb66f86f9652

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