How to set development environment ?
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 dev-update
- We use the PyPI test 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 test.pypi.org.
Generate unix socket applcation
make dev-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
.