CodecMinBin
Socket cluster client withA client in Python to connect to socket cluster server.
Forked from sacOO7/socketcluster-client-python.
Changes
- Apply codec MinBin.
- Add requirements.txt
Install the package
pip install sktclcli-minbin
Usage
Example for publishing and subscribing data in main_test.py
Commands for devs
- Ubuntu common python packages:
sudo apt install -qy python3-dev python3-distutils python3-pip python3-setuptools python3-venv
- Create and active virtual environment:
python3 -m venv venv
source venv/bin/activate
- Get latest pip:
pip install --index-url https://pypi.python.org/simple/ --upgrade pip
- Install dependencies:
pip install -r requirements.txt
- Save dependencies list:
python -m pip freeze --local > requirements.txt
- Packaging tools (should be installed on packaging machine, not venv):
sudo python3 -m pip install --upgrade setuptools wheel twine keyrings.alt
- Create built distribution:
python3 setup.py sdist bdist_wheel
- Upload the distribution:
python3 -m twine upload --repository pypi ./dist/*