Google translate as Python module & command line tool. No key, no authentication whatsoever. The default target language is Simplified Chinese.
利用google translate实现的命令行工具(translate),也可以当做Python模块用在你的代码中。
Installation
pip install translate
Or, you can download the source and
python setup.py install
Add sudo in the beginning if you met problem.
Command-Line Usage
In your command-line:
translate "This is a pen."
Or
translate -f zh -t ja 我是谁?
Use As A Python Module
from translate import Translator
translator= Translator(to_lang="zh")
translation = translator.translate("This is a pen.")
The result is in translation, and it’s usually a unicode string.
Metadata
Release files for translate 1.0.7
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 | |
|---|---|---|---|---|
| translate-1.0.7.tar.gz | 3.2 kB | Without provenance | Details |
Release files / translate-1.0.7.tar.gz
| Download URL | translate-1.0.7.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4478c22daead543040fc0273a9fa40f1b2eb76580991e58aa143a310c55f0e16
|
|
BLAKE2b-256 checksum How to use checksums |
b7d21a05b1c1973840581ea9aca91b8b61e4d8fc4f248b3a703fc089b9f6fd3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for translate 1.0.7
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.