Skip to main content

serve ez/dz/de bee via FastAPI rest

Project description

dezbee-rest

pytestpythonCode style: blackLicense: MITPyPI version

Serve [de|ez|dz]bee via FastAPI port 6666

python 3.8 only

Pre-install

  • fasttext
    • pip install fasttext (linux) or pip 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
  • polyglot fix:
    • poetry run pip install -U git+https://github.com/aboSamoor/polyglot.git@master or
    • pip 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


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)

Uploaded Source

Built Distribution

dezrest-0.1.0a1-py3-none-any.whl (7.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page