Metadata-Version: 2.1
Name: dezmq
Version: 0.1.0a1
Summary: dezmq
Home-page: https://github.com/ffreemt/dezbee-zmq
License: MIT
Author: ffreemt
Requires-Python: >=3.8.3,<4.0.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Dist: ezbee (>=0.1.2,<0.2.0)
Requires-Dist: logzero (>=1.7.0,<2.0.0)
Requires-Dist: pyzmq (>=25.0.0b1,<26.0.0)
Requires-Dist: scikit-learn (>=1.1.3,<2.0.0)
Requires-Dist: set-loglevel (>=0.1.2,<0.2.0)
Requires-Dist: typer (>=0.4.1,<0.5.0)
Project-URL: Repository, https://github.com/ffreemt/dezbee-zmq
Description-Content-Type: text/markdown

# dezbee-zmq
[![pytest](https://github.com/ffreemt/dezbee-zmq/actions/workflows/routine-tests.yml/badge.svg)](https://github.com/ffreemt/dezbee-zmq/actions)[![python](https://img.shields.io/static/v1?label=python+&message=3.8&color=blue)](https://www.python.org/downloads/)[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)[![PyPI version](https://badge.fury.io/py/dezmq.svg)](https://badge.fury.io/py/dezmq)

[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`)
```bash
      - 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](https://github.com/ffreemt/dezbee-zmq/blob/main/.github/workflows/routine-tests.yml) for detailed steps.

## Install it

```shell
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)
```bash
python -m dezmq

# docs
python -m dezmq --help
```

