Skip to main content

The Python wrapper for Sogou Translate API. Only Python 3.6 is supported.

sogou_translate_logo

sogou_translate_logo

Get started

You could install this library using pip:

pip install sogou-translate

Note: You might have to apply for the keys in order to use the service. If you wish to have a brief demo of this service, you could use the demo keys mentioned in the related web pages.

Example usage

from sogou_translate import SogouTranslate, SogouLanguages

trans = SogouTranslate('[Your pid]', '[Your secret key]')

en_text = 'Hello, world!'
zh_text = trans.translate(en_text, from_language=SogouLanguages.EN, to_language=SogouLanguages.ZH_CHS)
print(zh_text) # '你好,世界!'

License

The code is licensed under DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE. For more details, read the LICENSE file.

Metadata

Release files for sogou-translate 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for sogou-translate 1.0.1
File Interpreter ABI Platform Actions
sogou_translate-1.0.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for sogou_translate-1.0.1-py2.py3-none-any.whl

Release files / sogou_translate-1.0.1-py2.py3-none-any.whl

Download URL sogou_translate-1.0.1-py2.py3-none-any.whl
Size 6.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
046333773235e4c86fd638aae87f62ed5e19d7980e850e3a0948101cce5c3f98
BLAKE2b-256 checksum
How to use checksums
c00a4124857a273041a5a2d10553ac8d86a472646962de29a7aba46d381e662f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sogou-translate 1.0.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page