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:
- This is not Google's official library since Google has deprecated Input Tools API.
- Do not confuse with Google Translate 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!', lang_code='ru')
print(result)
хелло комраде!
Transliterate numerals
from google.transliteration import transliterate_numerals
result = transliterate_numerals('3210', lang_code='zh')
print(result)
三二一〇
Similar works
- Google Input Tools Client
- Google Input Tools VS Code Extension
- AksharaMukha - Brahmic scripts (South Asia and South-East Asia) (list)
- Indic-Trans
- Soviet Transliterate
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.
Metadata
Release files for google-transliteration-api 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| google-transliteration-api-1.0.3.tar.gz | 4.9 kB | Without provenance | Details for google-transliteration-api-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| google_transliteration_api-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for google_transliteration_api-1.0.3-py3-none-any.whl |
Total release size: 10.0 kB
Release files / google-transliteration-api-1.0.3.tar.gz
| Download URL | google-transliteration-api-1.0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3739221ae9026c40140e3fe2ae08c29e4d55481e7b135b1714683ef184dfc031
|
|
BLAKE2b-256 checksum How to use checksums |
949eda0681d6a0f0966a822b3c01745b0bc78824fd44d4876022a6c0bc963ba6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / google_transliteration_api-1.0.3-py3-none-any.whl
| Download URL | google_transliteration_api-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a56bf88c6b459eb42165c9b73ee6d4f287823d71d5b426751487acfbb54ef68
|
|
BLAKE2b-256 checksum How to use checksums |
a9d3a7cc059b0c47c11a6059733d5b3a294b98239af259078830ecaf6e917a0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for google-transliteration-api 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.