How to build locally ?
Clone the project
git clone https://github.com/hellstein/codegen-unixsocketcs.git
Install dependencies
python3
pip3
Create python package for testing
cd codegen-unixsocketcs
make update
- We use the PyPI repo for development, you can check
Makefile
to see the build and test process. - If you need knowledge how the python package works, please do read Packaging Python Projects.
- The python package has been built and uploaded into pypi.org.
Generate unix socket applcation
make test
- The application
app
is generated according totestconfig.json
. - The cli commands and handler functions are defined in
testconfig.json
.
Test the application
Start server in one terminal
cd app python3 app_server.py
Start client in another terminal
cd app python3 app_client.py [cmd]
cmd
is the cli command defined intestconfig.json
.- You also can check by
python3 app_client.py -h
.