🎉 PubSub+ Messaging API for Python v1.0.0 is officially GA!
I'd like to announce that version 1.0.0 for the PubSub+ Messaging API for Python is officially released!
Resources
- Docs found on https://docs.solace.com/Solace-PubSub-Messaging-APIs/Python-API/python-home.htm
- Samples found on https://github.com/SolaceSamples/solace-samples-python
What's Next?
Now that we have officially released v1.0 for our Python API, we will be working on getting tutorials up and running. We will also be collecting developer feedback on the API as we continue to work towards our version 1.1 of the API adding more features.
Stay tuned here on this thread to know what are the new features, bugs fixed, and performance improvements that were introduced from v0.2.1 to v1.0.0.
Let me know here on this thread as well if you are using the Python API and what your usecases are!
Comments
-
Hey @Tamimi, I am really excited about the Python API. Any instructions for connecting this to Solace cloud? Its easy to run this locally, I have tried and tested it. I have not found it straightforward to connect the client to solace cloud. I must be missing something.
0 -
Hey Solomon - first of welcome to the solace community! Great to hear you will be using the Python API in your solace interaction. Connecting your Python API to a Solace broker regardless the flavour (SW, Cloud, HW) is the same approach and it only involves specifying the right host url to connect to. Let's take for example the direct publisher sample where the broker properties is specified as follows
# Broker Config. Note: Could pass other properties Look into broker_props = { "solace.messaging.transport.host": os.environ.get('SOLACE_HOST') or "localhost", "solace.messaging.service.vpn-name": os.environ.get('SOLACE_VPN') or "default", "solace.messaging.authentication.scheme.basic.username": os.environ.get('SOLACE_USERNAME') or "default", "solace.messaging.authentication.scheme.basic.password": os.environ.get('SOLACE_PASSWORD') or "default" }
Note you can pass the host url directly from terminal as follows
SOLACE_HOST=<host_name> SOLACE_VPN=<vpn_name> SOLACE_USERNAME=<username> SOLACE_PASSWORD=<password> python <name_of_file>.py
.How are attempting to connect to your broker? Where are you getting your host URL? Code snippet and the steps you are following for your connection would help.
Feel free to start a new post here in the community and tag it with Python so we can make sure every thread stays with the same subject
@solcache1 -