Metadata-Version: 2.1
Name: socketcluster-minbin-client
Version: 0.1.4
Summary: A client in Python to connect to socket cluster server with socket min bin codec
Home-page: https://bitbucket.tradex.vn/projects/TS/repos/socketcluster-min-bin-python
Author: techx
Author-email: devops@techx.vn
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: gevent (==20.5.2)
Requires-Dist: greenlet (==0.4.15)
Requires-Dist: msgpack (==1.0.0)
Requires-Dist: six (==1.15.0)
Requires-Dist: websocket-client-py3 (==0.15.0)
Requires-Dist: zope.event (==4.4)
Requires-Dist: zope.interface (==5.1.0)

# Socket cluster client with [CodecMinBin](https://github.com/SocketCluster/sc-codec-min-bin)

A client in Python to connect to [socket cluster server](https://github.com/SocketCluster/socketcluster).  
Forked from [sacOO7/socketcluster-client-python](https://github.com/sacOO7/socketcluster-client-python).

## Changes

* Apply codec [MinBin](https://github.com/SocketCluster/sc-codec-min-bin).
* Add requirements.txt

## Install the package

`pip install socketcluster_minbin_client`

## 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/*````

