Skip to content

Mrc0113/solace-samples-python

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Solace Samples Python

Environment Setup

  1. Install Python 3.7
  2. [Optional] Install virtualenv python3 -m pip install --user virtualenv
  3. Clone this repository
  4. [Optional] Setup python virtual environment python3 -m venv venv
  5. [Optional] Activate virtual environment source venv/bin/activate

Install Dependencies

  1. pip install -r requirements.txt

Run Samples

Execute the script of choice and pass the environment variables

HOST=<host_name> VPN=<vpn_name> SOL_USERNAME=<username> SOL_PASSWORD=<password> python <name_of_file>.py

Notes:

  1. Python Virtual environments are recommended to keep your project dependencies within the project scope and avoid polluting global python packages
  2. Solace hostname, username, message vpn, and password are obtained from your Solace cloud account
  3. If you are reading this and the Solace Python API is still not published, you can install the wheel package from the Solace Community

To-Do

  • Add loop for publisher message rate

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%