Google Translate Client with deep-translator
Install
python3 -m pip install googletranslate-python
Usage
Python
from googletranslatepy import Translator
# use a http proxies
translator = Translator(proxies='http://127.0.0.1:10809')
# use a socks5 proxies
translator = Translator(proxies='socks5://127.0.0.1:10808')
translator.translate('Life is short, you need Python!')
# '人生苦短,你需要 Python!'
CMD
googletranslate --help
# list all available languages
googletranslate -l
# {
# "afrikaans": "af",
# "albanian": "sq",
# "amharic": "am",
# "arabic": "ar",
# ...
# translate a string text
googletranslate -p http://127.0.0.1:10809 'Life is short, you need Python!'
# translate a file
googletranslate -p http://127.0.0.1:10809 README.md
# set proxies to env
GOOGLE_PROXIES=http://127.0.0.1:10809 googletranslate 'hello world'
# or add to: ~/.bash_profile
export GOOGLE_PROXIES=http://127.0.0.1:10809
# and then use it directly
googletranslate 'hello world'
Metadata
Release files for googletranslate-python 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 |
|---|---|---|---|---|
| googletranslate-python-1.0.3.tar.gz | 4.4 kB | Without provenance | Details for googletranslate-python-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| googletranslate_python-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for googletranslate_python-1.0.3-py3-none-any.whl |
Total release size: 9.6 kB
Release files / googletranslate-python-1.0.3.tar.gz
| Download URL | googletranslate-python-1.0.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5934a9df90f6ae4940dc2ceb45588fb23c9ab9425ee0ace10def287f4b8b18ca
|
|
BLAKE2b-256 checksum How to use checksums |
c0552183a688ce9e5f393ff07d83818e14ff97caea04b786e13e320649d82505
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|
Release files / googletranslate_python-1.0.3-py3-none-any.whl
| Download URL | googletranslate_python-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb449708bdeb0a60a062dd57b672b2ba72edaba7933f7305b41c86db02bb880a
|
|
BLAKE2b-256 checksum How to use checksums |
802ff2b3d10f860b3e32e1f2abee1d21d1b4942c80c690cfdb6020e791be4dbe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.8
|
Security for googletranslate-python 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.