{"repo":"SolaceSamples/solace-samples-python","free":true,"listed":false,"github":"https://github.com/SolaceSamples/solace-samples-python","clone":"git clone https://github.com/SolaceSamples/solace-samples-python.git","description":"Getting Started Samples for the Solace Python API.","language":"Python","stars":26,"topics":["python","messaging","solace"],"license":null,"category":"chat-messaging","readme_excerpt":"Solace Samples Python This repo hosts sample code to showcase how the Solace Python API could be used. You can find: 1. /patterns -- runnable code showcasing different message exchange patters with the Python API 1. /howtos -- runnable code snippets showcasing how to use different features of the API. All howtos are named how to .py with some sampler files under sub folders. Environment Setup 1. Install Python3 (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 use python instead of python3 for the commands 1. [Optional] Install virtualenv python3 -m pip install --user virtualenv 1.1 Note: on a Linux machine, depending on the distribution you might need to apt-get install python3-venv instead 1.2 Alternatively, you can use pyenv to manage multiple versions of python. Follow the instructions here for more information https://realpython.com/intro-to-pyenv/#virtual-environments-and-pyenv 1. Clone this repository 1. [Optional] Setup python virtual environment python3 -m venv venv 1. [Optional] Activate virtual environment: 1.1 MacOS/Linux: source venv/bin/activate 1.2 Windows: venv/Scripts/activate 1. After activating the virtual environment, make sure you have the latest pip installed pip install --upgrade pip Install the Solace Python API and other dependencies 1. Install the API pip install -r requirements.txt Run Samples Execute the script of choice as follows: - python patterns/ .py Note: This","default_branch":null,"files":null,"tree":[],"storefront":"/r/SolaceSamples","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SolaceSamples/solace-samples-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}