chenjiandongx / fy

Licence: MIT license
🌐 Translate words via command line

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to fy

Many-Translaters
谷歌翻译,360翻译,iCIBA翻译,有道翻译,免费API
Stars: ✭ 121 (+227.03%)
Mutual labels:  youdao
Chrome Extensions Youdaowithwordnode
有道词典chrome划词插件,原版不带生词本,在其源码基础上,添加了添加生词本的功能,生词本用的有道官方API
Stars: ✭ 74 (+100%)
Mutual labels:  youdao
Isearch
有道词典 命令行查询 柯林斯词典 单词管理 本地保存
Stars: ✭ 201 (+443.24%)
Mutual labels:  youdao
Ydict
Yet another command-line youdao dictionary for geeks!
Stars: ✭ 318 (+759.46%)
Mutual labels:  youdao
Whyliam.workflows.youdao
使用有道翻译你想知道的单词和语句
Stars: ✭ 837 (+2162.16%)
Mutual labels:  youdao
Eazydict
简单易用的命令行词典 📕 📙 📗 📘 📓
Stars: ✭ 92 (+148.65%)
Mutual labels:  youdao
MrTranslator
📘MrTranslator-A Translation Android APP
Stars: ✭ 16 (-56.76%)
Mutual labels:  youdao
terminal-translate
a terminal-translate tool
Stars: ✭ 73 (+97.3%)
Mutual labels:  youdao
Popup Dict
Linux 下的划词翻译小工具
Stars: ✭ 69 (+86.49%)
Mutual labels:  youdao
Youdao
基于python 的命令行下查词工具,使用有道api
Stars: ✭ 179 (+383.78%)
Mutual labels:  youdao
Chrome Extension Udemy Translate
Translate Udemy's subtitles into Chinese、English etc(Disneyplus+netflix+udemy+lynda+hulu+hbo now+primevideo)
Stars: ✭ 553 (+1394.59%)
Mutual labels:  youdao
Codevar
生成可用的代码变量 (CodeVar that return u a better variable from Chinese to English . )
Stars: ✭ 834 (+2154.05%)
Mutual labels:  youdao
Youdao Collins Chrome Extension
A chrome extension to help you search english words in collins dict.
Stars: ✭ 112 (+202.7%)
Mutual labels:  youdao
Translators
🌏🌍🌎Translators🌎🌍🌏 is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
Stars: ✭ 295 (+697.3%)
Mutual labels:  youdao
Dict
Chinese and English translation tools in the command line(命令行下中英文翻译工具)
Stars: ✭ 243 (+556.76%)
Mutual labels:  youdao
weixin python
微信公众号开发,python Flask
Stars: ✭ 18 (-51.35%)
Mutual labels:  youdao
Alfred Parrot
📝 一款可以多种语言翻译的 Alfred Workflow
Stars: ✭ 89 (+140.54%)
Mutual labels:  youdao
kictor
A dictionary based on the console, 一个基于控制台的词典工具
Stars: ✭ 15 (-59.46%)
Mutual labels:  youdao
AlfredWorkflow YoudaoTranslate
alfred workflow,有道翻译
Stars: ✭ 20 (-45.95%)
Mutual labels:  youdao
Youdao Dictionary.el
Youdao Dictionary(有道词典) interface for Emacs
Stars: ✭ 151 (+308.11%)
Mutual labels:  youdao

pyecharts logo

🌐 fy

Translate words via command line. Inspired by afc163/fanyi, but more features.

Travis Build Status Appveyor Build Status Appveyor Build Status PyPI - Python Version PyPI - Python Version MIT License

特性

  • 单词字典查询
  • 中英句子互译
  • 关键词高亮
  • 发音(只在 Windows 下,Linux/MacOS 暂时未找到合适的第三方库)
  • Prompt shell,支持单词补全
  • 支持配置文件(配置查询来源以及对应接口的 TOKEN KEY)
  • records shell,记录查询历史

🔰 安装

pip 安装

$ pip(3) install fy

源码安装

$ git clone https://github.com/chenjiandongx/fy.git
$ cd fy
$ pip(3) install -r requirements.txt
$ python setup.py install

📝 使用

$ fy --help
usage: fy [-h] [-s] [-r] [-R] [-v] [WORDS [WORDS ...]]

Translate words via command line

positional arguments:
  WORDS          the words to translate

optional arguments:
  -h, --help     show this help message and exit
  -s, --shell    spawn a query prompt shell.
  -r, --records  spawn a records prompt shell.
  -R, --reset    reset fy configuration.
  -v, --version  displays the current version of fy.

查单词

英译中

中译英

query prompt shell

records prompt shell

使用 SQLite 数据库,表名称为 words

🔧 配置

配置文件内容为

$ car ~/.fy.json

{
    "query_source": "google,youdao,iciba",
    "youdao_key": "1945325576",
    "youdao_key_from": "Youdao-dict-v21",
    "iciba_key": "4B26F43688FA072E0B94F68FFCE224CF",
    "enable_sound": true
}

查询源

目前支持 google、youdao、iciba,如果只想使用 youdao 源,可修改为 query_source: "youdao",google/iciba 同理

TOKEN KEY

目前使用的 TOKEN KEY 都是我自己申请的,youdao 有限制,iciba 没有,开发者可以自行申请替换。

📅 Changelog

V1.6.0 - 2019-09-16

  • Update: 新增 pangu 分词

V1.5.2 - 2019-08-28

  • Add: 新增 -R 参数,重置配置信息

V1.5.1 - 2019-08-19

  • Update: 输出格式调整

V1.5.0 - 2019-08-19

  • Add: 新增 google 翻译源

V1.4.1 - 2019-01-28

  • Add: 新增关闭声音配置项

V1.4.0 - 2019-01-28

  • Update: 使用 sqlite prompt shell

V1.3.0 - 2019-01-27

  • Add: 支持保存历史查询记录

V1.2.1 - 2019-01-26

  • Update: 声明支持的 Python 版本

V1.2.0 - 2019-01-26

  • Add: 提供配置文件

V1.1.0 - 2019-01-25

  • Add: 新增发音功能

V1.0.0 - 2019-01-24

  • Alpha: 第一个正式版发布

📃 LICENSE

MIT ©chenjiandongx

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].