Skip to main content

Solace PubSub+ Messaging API for Python.

Project description

This package contains the Solace PubSub+ Messaging API for Python.

The Solace PubSub+ Messaging API for Python is developed and supported by the Solace Corporation.

The API provides access to Solace PubSub+ Messaging Service, supporting a variety of Message Exchange Patterns.

Installation

Install the API using pip: pip install solace-pubsubplus

Dependencies

Solace PubSub+ 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 PubSub+ 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 PubSub+ 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:

  1. DirectMessagePublisher: Created by a DirectMessagePublisherBuilder. DirectMessagePublisher send messages that are not acknowledged and are not stored on the Solace PubSub+ Event Broker. This is the fastest delivery path because messages are never queued and therefore cannot be delivered to offline MessageReceiver at a later time. Messages published by DirectMessagePublisher are eligible for discard when network congestion occurs.
  2. PersistentMessagePublisher: Created by a PersistentMessagePublisherBuilder. PersistentMessagePublisher sends messages that are guaranteed to be delivered to MessageReceiver, even if the MessageReceiver object is offline. PubSub+ 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:

  1. DirectMessageReceiver: Created by a DirectMessageReceiverBuilder. DirectMessgeReceiver consumes messages as they are published. DirectMessageReceiver will not receive messages published before the receiver is created or while the receiver is offline. DirectMessageReceiver is not required to acknowledge received messages. DirectMessageReceiver may receive messages from any publisher (persistent or direct), but only while the DirectMessageReceiver is online.
  2. PersistentMessageReceiver: Created by a PersistentMessageReceiverBuilder. PersistentMessageReceiver consume messages from a queue created on the Solace Pubsub+ Event broker. When the queue is created and subscriptions applied, it will begin storing messages, even if PersistentMessageReceiver is offline. Messages are stored until delivered to the PersistentMessageReceiver and the PersistentMessageReceiver acknowledges the message. PersistentMessageReceiver is responsible for acknowledging messages received to remove them from the PubSub+ 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 PubSub+ Messaging API for Python cannot be used in applications that use the Python multiprocessing module.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

solace_pubsubplus-1.8.0-py36-none-win_amd64.whl (2.9 MB view details)

Uploaded Python 3.6Windows x86-64

solace_pubsubplus-1.8.0-py36-none-win32.whl (2.6 MB view details)

Uploaded Python 3.6Windows x86

solace_pubsubplus-1.8.0-py36-none-manylinux_2_17_aarch64.whl (2.5 MB view details)

Uploaded Python 3.6manylinux: glibc 2.17+ ARM64

solace_pubsubplus-1.8.0-py36-none-manylinux_2_12_x86_64.whl (4.4 MB view details)

Uploaded Python 3.6manylinux: glibc 2.12+ x86-64

solace_pubsubplus-1.8.0-py36-none-macosx_11_0_universal2.whl (11.3 MB view details)

Uploaded Python 3.6macOS 11.0+ universal2 (ARM64, x86-64)

File details

Details for the file solace_pubsubplus-1.8.0-py36-none-win_amd64.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.8.0-py36-none-win_amd64.whl
Algorithm Hash digest
SHA256 7b951b1eb421117fcc997bfbe4a2051b0dabe50b8a90b9df648a00e5835351f1
MD5 be913703a0c3aafb6e2605c799b49a1e
BLAKE2b-256 fa25c4b32c89bd3cc3b8f349332c59bf8f6b9ee4660f23ae8756f76b8af07d94

See more details on using hashes here.

File details

Details for the file solace_pubsubplus-1.8.0-py36-none-win32.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.8.0-py36-none-win32.whl
Algorithm Hash digest
SHA256 d62d3d005dd0f393734167cb24faead386de5f133f0a2f33daabe2ed59eb9991
MD5 19ab4356b07dc7096ba17f89ed9caf2a
BLAKE2b-256 f26267c4c40f9354c53284b1286e26f2a46ef8f05121926eb69d61eff7b67121

See more details on using hashes here.

File details

Details for the file solace_pubsubplus-1.8.0-py36-none-manylinux_2_17_aarch64.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.8.0-py36-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 8e81ac01958384e0a36dbc2b93d454fc59a65261e51bb6433fbf03bcc3292b60
MD5 6015d3f5064dee0ce68bad8dbbd9ea91
BLAKE2b-256 4af4e0051e2e102fcfa5e65a172d6b742279c1ffef0a58404255a6de93f88259

See more details on using hashes here.

File details

Details for the file solace_pubsubplus-1.8.0-py36-none-manylinux_2_12_x86_64.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.8.0-py36-none-manylinux_2_12_x86_64.whl
Algorithm Hash digest
SHA256 7a9e4da1d721c0828eda2051783bf7c5dc7ad5dc9e246d1fcad154b757966cb3
MD5 fc6e9a1988008e239eb992ffd974d51b
BLAKE2b-256 f4df8081de37883335bcf4b5c218bdcb73308316ece446ccac45f591c90327cd

See more details on using hashes here.

File details

Details for the file solace_pubsubplus-1.8.0-py36-none-macosx_11_0_universal2.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.8.0-py36-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 a55056949d20b33f86fa12a23439195b9589e48361e1b54e413d06135d9a2f3a
MD5 80194011afa23ad597372d860ea3986d
BLAKE2b-256 326ce7fe204b1e02268f40bdb51eeb4c744f2917a863dee506b96732b7942616

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page