flask-mdict icon indicating copy to clipboard operation
flask-mdict copied to clipboard

Flask Mdict Server. Query word online with MDICT dictionary

=========== Flask-MDict

.. NOTE::

Follow MIT and 996.ICU license.

Screenshot

.. image:: mdict_screenshot2.png

.. image:: mdict_screenshot.png

Usage

Install

::

git clone https://github.com/liuyug/flask-mdict.git

cd flask-mdict
pip3 install -r requirements.txt

mkdir content
# copy MDICT dictionary into content directory
cp <mdict> content/

# install word frequency database from ecdict csv
ecdict.sh
# or copy current ecdict_wfd.db to your content directory
# cp ecdict_wfd.db content/

Run

::

flask run

Browser

::

firefox http://127.0.0.1:5000

.. note::

+   MDict original query code come from mdx-server_
+   Python3

.. _mdx-server: https://github.com/ninja33/mdx-server

Donate 捐赠

.. image:: alipay_pay.jpg :width: 45%

.. image:: wx_pay.png :width: 45%