Skip to main content

A terminal bilingual dictionary

Project description

#yd

* introduction
* A terminal bilingual dictionary by youdao API
* features
* soundmark, definition, example sentence for English word
* pinyin and bilingual example sentence for chinese word

### Install
sudo pip install yd

### Help
```
Input[0]:
yd --help

Output[1]:
yd [options] word

-s, --save-to=[db|disk] designate the place for local cache
-u, --user=[name] set the user to access local database
-p, --password=[passwd] set the password corresponding to the user name
-h, --help display the help and exit
-v, --version output version information and exit
-o, --output=filename output cached word to file
--reset reset to initial state
```

### Usage
* yd --save-to=[db|disk]
* 'db' means search history will be cached to local database
* 'disk' means ~/.yd/.cache
* yd -u username -p password
* directly set username and password for your database instead program ask you to fill in

### Examples
![](ex.png)

### Thanks to Flowerowl's work <https://github.com/Flowerowl/ici>

Project details


Download files

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

Source Distribution

yd-1.0.1.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file yd-1.0.1.tar.gz.

File metadata

  • Download URL: yd-1.0.1.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for yd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a70e23ad4a2420adc5f4bd082839c5b8186d6e8d15806e650780c3cd5fe3f517
MD5 cf11b70ee0eb895e9972804e0be2a34e
BLAKE2b-256 d05efce37a35a7b0fdeb9652df63784b18701a8860fa7b5f4d01a687ca86a7e7

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