Metadata-Version: 2.1
Name: dictfire
Version: 1.1.20
Summary: 命令行下[中英，中俄，中日，中韩，中法，中德，中西]文互翻译工具（Command line translation tool for Chinese English,Chinese French, Chinese Japanese, Chinese Korean, Chinese German），翻译服务基于有道翻译。
Home-page: https://github.com/HeywoodKing/dictfire
Author: hywell
Author-email: opencoding@hotmail.com
Maintainer: hywell
Maintainer-email: opencoding@hotmail.com
License: MIT
Download-URL: https://github.com/HeywoodKing/dictfire
Keywords: Translation English2Chinese,Chinese2English,Chinese2French,French2Chinese,Chinese2Japanese,Japanese2Chinese,Chinese2Korean,Korean2Chinese,Chinese2German,German2Chinese） Command-line
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: Chinese (Simplified)
Classifier: Natural Language :: English
Classifier: Topic :: Utilities
Classifier: Topic :: Terminals
Classifier: Topic :: System :: Distributed Computing
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.0.0
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: fake-useragent


dict
====

   命令行下[中英，中俄，中日，中韩，中法，中德，中西]文互翻译工具（Command
   line translation tool for Chinese English, Chinese French, Chinese
   Japanese, Chinese Korean, Chinese
   German），目前支持中英互译，翻译服务基于有道翻译。 同时也支持程序调用

安装(Install)
-------------

::

   sudo pip3 install dictfire

用法(Usage)
-----------

命令行使用
~~~~~~~~~~

中译英(Chinese To English)
^^^^^^^^^^^^^^^^^^^^^^^^^^

1. 单词(Word)

::

   $ dict 测试

   ####################################################################
   #  
   #  测试 
   #  
   #  test
   #
   ####################################################################

2. 句子(sentence)

::

   $ dict 我爱你

   ####################################################################
   #  
   #  我爱你
   #  
   #  I love you
   #
   ####################################################################

英译中(English To Chinese)
^^^^^^^^^^^^^^^^^^^^^^^^^^

1. 单词(Word)

::

   $ dict test

   ####################################################################
   #  
   #  test
   #  
   #  测试
   #  
   ####################################################################

2. 句子(sentence)

::

   $ dict I love you

   ####################################################################
   #  
   #  I love you
   #
   #  我爱你。
   #
   ####################################################################

--------------

程序调用
~~~~~~~~

::

   result = DictFire(is_command=False).translate("I love you")
   或者
   d = DictFire(is_command=False)
   result = d.translate("I love you")

   print(result)

1. 返回成功：

::

   {
       "code": 0,
       "type": "EN2ZH_CN",
       "src": "I love you",
       "tgt": "我爱你",
       "msg": "获取成功"
   }

2. 返回失败：

::

   {
       "code": 20,
       "type": "EN2ZH_CN",
       "src": "I love you",
       "tgt": "",
       "msg": "WORD TO LONG"
   }


