Skip to main content

a simple command line translation tool based on sougou api

Project description

基于python 的命令行下中英文翻译工具,使用搜狗翻译api

pip 安装

$ pip install sougou-cli


$ git clone
$ cd sougou-cli
$ pip install -r requirements.txt
$ python install


$ sg -h
usage: sg [-h] [-v] [word [word ...]]

the usage of Sougou-Dict command line

positional arguments:
  word           word or phrase you want to translate

optional arguments:
  -h, --help     show this help message and exit
  -v, --version  show current version


$ sg beautiful

        >>> beautiful: 美丽的 <<<


$ sg where there is a will, there is a way!

        >>> where there is a will, there is a way!: 有志者事竟成! <<<


$ sg 我不爱吃鸡排饭
        >>> 我不爱吃鸡排饭: I don't like chicken steak <<<

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release. See tutorial on generating distribution archives.

Built Distribution

sougou_cli-1.0.0-py3-none-any.whl (4.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page