- Install Python 3.7 (See installed version using
python3 -V)
1.1 Note: If you are installing python for the first time on your machine then you can just usepythoninstead ofpython3for the commands - [Optional] Install virtualenv
python3 -m pip install --user virtualenv
1.1 Note: on a Linux machine, depending on the distribution you might need toapt-get install python3-venvinstead - Clone this repository
- [Optional] Setup python virtual environment
python3 -m venv venv - [Optional] Activate virtual environment:
1.1 MacOS/Linux:source venv/bin/activate
1.2 Windows:source venv/Scripts/activate
- Install the API
pip install solace-pubsubplus
Execute the script of choice as follows:
python <name_of_file>.py
Note: This assumes you have a local docker broker running on localhost
To pass non default parameters, do so via the environment variables
SOLACE_HOST=<host_name> SOLACE_VPN=<vpn_name> SOLACE_USERNAME=<username> SOLACE_PASSWORD=<password> python <name_of_file>.py
- Python Virtual environment is recommended to keep your project dependencies within the project scope and avoid polluting global python packages
- Solace hostname, username, message vpn, and password are obtained from your Solace cloud account
- Add loop for publisher message rate
- Add License, Authors, Contributing
- Add
pip install solace-pubsubpluswhen API is released
- Solace Developer Portal is at solace.dev
- Ask the Solace Community for further discussions and questions.