serve ez/dz/de bee via FastAPI rest
Project description
dezbee-rest
Serve [de|ez|dz]bee via FastAPI port 6666
python 3.8 only
Pre-install
- fasttext
pip install fasttext
(linux) orpip install fasttext*whl
(Windows)
- pycld2, PyICU
- e.g.
poetry run pip install pycld2-0.41-cp38-cp38-win_amd64.wh PyICU-2.9-cp38-cp38-win_amd64.whl
- e.g.
- polyglot fix:
poetry run pip install -U git+https://github.com/aboSamoor/polyglot.git@master
orpip install artifects\polyglot-16.7.4.tar.gz
(modified cloned polyglot: futures removed from requirements.txt)
- scikit-learn (for deprecated sklearn used in some packages) and pybind11 (for Windows)
Refer to workflows
Install it
pip install dezrest
# pip install git+https://github.com/ffreemt/dezbee-rest
# poetry add git+https://github.com/ffreemt/dezbee-rest
# git clone https://github.com/ffreemt/dezbee-rest && cd dezbee-rest
Use it
# sart the server at port 5555 via `uvicorn` with 2 workers
python -m dezrest
# or
dezrest
# or run at external IP
python -m dezrest --host 0.0.0.0
# or dezrest --host 0.0.0.0
# cli help
python -m dezrest --help
or
dezrest --help
# REST docs (Swagger UI)
http://127.0.0.1:5555/docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dezrest-0.1.0a1.tar.gz
(7.2 kB
view hashes)
Built Distribution
Close
Hashes for dezrest-0.1.0a1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3fa26459fb31a06fd08dad794299cd1766d1d2c5261ac8cd9677e90c4afd3367 |
|
MD5 | e985fdb3bb57ad7bbccbd63b55b5ca44 |
|
BLAKE2b-256 | d403b9a3bef027ea7b014a954f11c5db731a0561657bc2934abec6cabe97e59d |