A google translate api. To install it: pip install mygoogletrans
To use it:
import gtrans
t=gtrans.GoogleTrans()
t.translate("Hello everyone","fr")
#>'Bonjour à tous'
Other useful actions
t.translations("Hello","fr")
#> {'Bonjour!': ['Hello!',
# 'Hi!',
# 'Good morning!',
# 'Good afternoon!',
# 'How do you do?',
# 'Hallo!'],
# 'Salut!': ['Hi!', 'Hello!', 'Salute!', 'All the best!', 'Hallo!', 'Hullo!'],
# 'Tiens!': ['Hallo!', 'Hello!', 'Hullo!', 'Why!'],
# 'Allô!': ['Hello!', 'Hullo!', 'Hallo!']}
t.definitions("Hello")
#> {'Word': 'maison',
# 'Definitions': [{'gram_class': 'Substantiv',
# 'definitions': [{'definition': "Bâtiment d'habitation (immeuble, logement, résidence) ; spécialement bâtiment conçu pour un seul ou un petit nombre de foyers (pavillon, villa).",
# 'examples': ('Une maison pauvre, délabrée.',
# "La façade, les murs, le toit d'une maison.")},
# {'definition': "Habitation, logement (qu'il s'agisse ou non d'un bâtiment entier).",
# 'synonyms': {'': ['demeure',
# 'domicile',
# 'foyer',
# 'logis',
# 'appartement']},
# 'examples': ('Les clés de la maison.',)},
# {'definition': "Travail, place (d'un domestique)."},
# {'labels': ['(+ adjectif ; + de et nom)'],
# 'definition': 'Bâtiment, édifice destiné à un usage spécial.'},
# {'definition': 'Entreprise commerciale.',
# 'synonyms': {'': ['établissement', 'firme']},
# 'examples': ('La maison mère et ses succursales.',)},
# {'labels': ['vieux', 'au figuré'],
# 'definition': 'Famille.',
# 'examples': ('Une maison princière.',)},
# {'labels': ['au figuré', 'Histoire'],
# 'definition': 'Ensemble des personnes employées au service des grands personnages.',
# 'examples': ('La maison du roi.',)},
# {'labels': ['au figuré'],
# ...
# 'examples': ('Une engueulade maison.',)},
# {'labels': ['en apposition (invariable)'],
# 'definition': 'Particulier à une entreprise.',
# 'examples': ("L'esprit maison.",)}]},
# {'definitions': [{'examples': ('Les traditions de la maison.',)}]}]}
Metadata
Release files for mygoogletrans 1.0.0
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 |
|---|---|---|---|---|
| mygoogletrans-1.0.0.tar.gz | 4.0 kB | Without provenance | Details for mygoogletrans-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mygoogletrans-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for mygoogletrans-1.0.0-py3-none-any.whl |
Total release size: 8.3 kB
Release files / mygoogletrans-1.0.0.tar.gz
| Download URL | mygoogletrans-1.0.0.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
46f2bc937f3e2dc21dd3a206a56c994d3da3543ed9ede2d771a0953e369950c2
|
|
BLAKE2b-256 checksum How to use checksums |
a23a6c911f9a90755d175d67a1e36eb6775a8692d635987899bac5632b4a37c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0
|
Release files / mygoogletrans-1.0.0-py3-none-any.whl
| Download URL | mygoogletrans-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6a35494ce0c5c68488ac03650d493d22f6df8522bcb86fb738d58c896fc729ec
|
|
BLAKE2b-256 checksum How to use checksums |
2ea8a85cba5d17a0781428784a69ee00554df1a417ec48b958d52b7c176adb8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0
|
Security for mygoogletrans 1.0.0
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.