Solace Messaging API for Python.
Project description
This package contains the Solace Messaging API for Python.
The Solace Messaging API for Python is developed and supported by the Solace Corporation.
The API provides access to Solace Messaging Service, supporting a variety of Message Exchange Patterns.
Installation
Install the API using pip: pip install solace-pubsubplus
Dependencies
Solace Messaging API for Python requires Python 3.6 or greater.
Documentation
An online reference for the API is available at docs.solace.com.
Introduction
There are four primary objects in the Solace Messaging API for Python that applications can use, which are as follows:
MessagingService
from solace.messaging.messaging_service import MessagingService
The starting point for all client-broker connections. MessagingService defines and controls the connection to the Solace Event Broker.
A MessagingService object is created by the MessagingServiceBuilder.
MessagePublisher
from solace.messaging.publisher.message_publisher import MessagePublisher
The abstract base class for a Message Publisher (MessagePublisher). Applications do not build MessagePublisher objects directly, rather an application will invoke a builder.
for one of two derived objects:
DirectMessagePublisher: Created by aDirectMessagePublisherBuilder.DirectMessagePublishersend messages that are not acknowledged and are not stored on the Solace Event Broker. This is the fastest delivery path because messages are never queued and therefore cannot be delivered to offlineMessageReceiverat a later time. Messages published byDirectMessagePublisherare eligible for discard when network congestion occurs.PersistentMessagePublisher: Created by aPersistentMessagePublisherBuilder.PersistentMessagePublishersends messages that are guaranteed to be delivered toMessageReceiver, even if theMessageReceiverobject is offline. Solace Event Broker stores the messages until they are delivered and consumed by all subscribing receivers.
MessageReceiver
from solace.messaging.receiver.message_receiver import MessageReceiver
The abstract base class for a Message Receiver (Message Receiver). Applications do not build MessageReceiver objects directly, rather an application will invoke a builder for one of two derived objects:
DirectMessageReceiver: Created by aDirectMessageReceiverBuilder.DirectMessgeReceiverconsumes messages as they are published.DirectMessageReceiverwill not receive messages published before the receiver is created or while the receiver is offline.DirectMessageReceiveris not required to acknowledge received messages.DirectMessageReceivermay receive messages from any publisher (persistent or direct), but only while theDirectMessageReceiveris online.PersistentMessageReceiver: Created by aPersistentMessageReceiverBuilder.PersistentMessageReceiverconsume messages from a queue created on the Solace Event broker. When the queue is created and subscriptions applied, it will begin storing messages, even ifPersistentMessageReceiveris offline. Messages are stored until delivered to thePersistentMessageReceiverand thePersistentMessageReceiveracknowledges the message.PersistentMessageReceiveris responsible for acknowledging messages received to remove them from the Solace Event Broker Queue.
Message
from solace.messaging.core.message import Message
The abstract base class for a Message. Applications do not build a Message object directly, rather an application will invoke a builder for an OutboundMessage (for publish) or
receive an InboundMessage (from a MessageReceiver).
Samples
Sample applications are available at the Solace Developer Community
multiprocessing
Solace Messaging API for Python cannot be used in applications that use the Python multiprocessing module.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solace_pubsubplus-1.11.0-py36-none-win_amd64.whl.
File metadata
- Download URL: solace_pubsubplus-1.11.0-py36-none-win_amd64.whl
- Upload date:
- Size: 3.0 MB
- Tags: Python 3.6, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
207567d5251eff469f318ae55a40fda4e558db9bcf30a543322d5a4d396d64cd
|
|
| MD5 |
0258096925279c2b8615e0e4db475b3c
|
|
| BLAKE2b-256 |
5cb290efcab59374ce0c7cd22e1850b2ecb965bb0c5adee1f7e1d09d7a15a242
|
File details
Details for the file solace_pubsubplus-1.11.0-py36-none-win32.whl.
File metadata
- Download URL: solace_pubsubplus-1.11.0-py36-none-win32.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 3.6, Windows x86
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c313ecdaab7adb8fed547ae64749ab5b850f5c4370a4c7556ee38591ebdf3d05
|
|
| MD5 |
e93a3b540fd696ec91a59b10b2fc8394
|
|
| BLAKE2b-256 |
b3e4eeda0c376fe0bd09b640cf657ca90b5b46e9f60902593670e77849df1ad8
|
File details
Details for the file solace_pubsubplus-1.11.0-py36-none-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: solace_pubsubplus-1.11.0-py36-none-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 2.5 MB
- Tags: Python 3.6, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63b75f154917e2f6e3f669b6d64bd8cf774bf37b301ab42b129ac21f7cbdb9d
|
|
| MD5 |
9f3ed7c75d9f0b666c5deefb3aba49b1
|
|
| BLAKE2b-256 |
77ffb36c9a348b47c868e21128d1434affad8eb7351836f7987d4f21aec397a5
|
File details
Details for the file solace_pubsubplus-1.11.0-py36-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: solace_pubsubplus-1.11.0-py36-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3.6, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
114768fe365bc79abee90852dc483e9fa5bc3fb9a4bf218e85029f8d050d0de3
|
|
| MD5 |
5df3a74e7ba09bf7c1a55b67637316a3
|
|
| BLAKE2b-256 |
89ec0bc2c4e1d3b80e406e9983c61b871a71db42d8d5b28f34e8edb4e0c6a82b
|
File details
Details for the file solace_pubsubplus-1.11.0-py36-none-manylinux_2_12_x86_64.whl.
File metadata
- Download URL: solace_pubsubplus-1.11.0-py36-none-manylinux_2_12_x86_64.whl
- Upload date:
- Size: 4.7 MB
- Tags: Python 3.6, manylinux: glibc 2.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c0deb5016a4005b4f01b8f8a16c664c0b306ffb51da4ace4d24169ffbbfbdee
|
|
| MD5 |
2d2d8af7ef99eeeeb03b5226838cfc7a
|
|
| BLAKE2b-256 |
40af1c754d7d819bdaf9952a429ac8309461ec5db5f87f6ca29bff6d0d35e8ae
|
File details
Details for the file solace_pubsubplus-1.11.0-py36-none-macosx_11_0_universal2.whl.
File metadata
- Download URL: solace_pubsubplus-1.11.0-py36-none-macosx_11_0_universal2.whl
- Upload date:
- Size: 11.3 MB
- Tags: Python 3.6, macOS 11.0+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b58a3bc2c2780744399c63db7d5c062e23effa52665c4c6dc56b838311a254
|
|
| MD5 |
14167033d0721d83492870bf4a552b56
|
|
| BLAKE2b-256 |
0f27d9fd4378d75929b2002c5f536a58b3e7a8ced538fa40a048919d177dd53e
|