How to set development environment ?
Clone the project
git clone https://github.com/hellstein/codegen-unixsocketcs.git
Install dependencies
python3pip3
Create python package for testing
cd codegen-unixsocketcs
make dev-update
- We use the PyPI test repo for development, you can check
Makefileto 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
appis 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.pyStart client in another terminal
cd app python3 app_client.py [cmd]cmdis the cli command defined intestconfig.json.- You also can check by
python3 app_client.py -h.