Skip to main content

Flask Mdict Server

Project description

Screenshot

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 flask_mdict_wfd.db to your content directory
# cp flask_mdict_wfd.db content/

Run

Cli:

python app.py

python app.py --mdict-dir your_mdict_path

python app.py --host 127.0.0.1:5248

Window usage:

# 1. put files into path:
# path\
# path\flask_mdict.exe
# path\flask_mdict_wfd.db
# path\your_mdict_path

# 2. run
flask_mdict.exe

# 3. Browser
firefox http://127.0.0.1:5248

Config

  • flask_mdict.json: server settings

  • flask_mdict.db: dictionary settings and searching history

  • flask_mdict_wfd.db: word frequency db [option]

Browser

firefox http://127.0.0.1:5248

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.

flask_mdict-1.4.22-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file flask_mdict-1.4.22-py3-none-any.whl.

File metadata

  • Download URL: flask_mdict-1.4.22-py3-none-any.whl
  • Upload date:
  • Size: 2.7 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.5

File hashes

Hashes for flask_mdict-1.4.22-py3-none-any.whl
Algorithm Hash digest
SHA256 fd40b5bf2e0127cdca348a32f7228fe309a393ee7f3f1f93df007bb5d6f22bce
MD5 b31ed253ff3024a834614d176b0dc24a
BLAKE2b-256 052c2f23b4db6ad9f4bff08388143b66b40ff4e73a35cfcfdb123f20de535060

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