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 https://github.com/Gaterny/sougou-cli.git
$ cd sougou-cli
$ pip install -r requirements.txt
$ python setup.py 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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file sougou_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sougou_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.3

File hashes

Hashes for sougou_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96c7946cd2173fa4b185c125b91383e7658200763027893619ac9ae6bfc350bb
MD5 74b2662b928da0f5351636459dc51060
BLAKE2b-256 fa00fa922da873669700b81bc817e648f6a696d0340f053f1c8bc2687b74e5c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page