dezmq

dezmq


License
MIT
Install
pip install dezmq==0.1.0a1

Documentation

dezbee-zmq

pytestpythonCode style: blackLicense: MITPyPI version

[de|ez|dz]bee via zmq (zmq.REP)

python 3.8 only

Since some of dezmq's dependent packages (notably fast-scores etc) are 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)

Or (excerpt from routine-tests.yml)

      - name: Pre-install fastext pycld2 pyicu
        run: |
          if [ "$RUNNER_OS" == "Windows" ]; then
            poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/fasttext-0.9.2-cp38-cp38-win_amd64.whl
            poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/pycld2-0.41-cp38-cp38-win_amd64.whl
            poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/PyICU-2.8.1-cp38-cp38-win_amd64.whl
            poetry run pip install pybind11
          else
            poetry run pip install fasttext pycld2 pyicu
          fi
          poetry run pip install https://github.com/ffreemt/ezbee/raw/main/data/artifects/polyglot-16.7.4.tar.gz
        shell: bash

Refer to workflows/actions for detailed steps.

Install it

pip install dezmq
# pip install git+https://github.com/ffreemt/dezbee-zmq
# poetry add git+https://github.com/ffreemt/dezbee-zmq
# git clone https://github.com/ffreemt/dezbee-zmq && cd dezbee-zmq

Use it

DEZMQ_HOST (default local) and DEZMQ_PORT (default 5555)

python -m dezmq

# docs
python -m dezmq --help