Skip to main content

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:

  1. DirectMessagePublisher: Created by a DirectMessagePublisherBuilder. DirectMessagePublisher send 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 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. 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:

  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 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 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


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.11.0-py36-none-win_amd64.whl (3.0 MB view details)

Uploaded Python 3.6Windows x86-64

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

Uploaded Python 3.6Windows x86

solace_pubsubplus-1.11.0-py36-none-musllinux_1_2_x86_64.whl (2.5 MB view details)

Uploaded Python 3.6musllinux: musl 1.2+ x86-64

solace_pubsubplus-1.11.0-py36-none-manylinux_2_17_aarch64.whl (2.7 MB view details)

Uploaded Python 3.6manylinux: glibc 2.17+ ARM64

solace_pubsubplus-1.11.0-py36-none-manylinux_2_12_x86_64.whl (4.7 MB view details)

Uploaded Python 3.6manylinux: glibc 2.12+ x86-64

solace_pubsubplus-1.11.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.11.0-py36-none-win_amd64.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.11.0-py36-none-win_amd64.whl
Algorithm Hash digest
SHA256 207567d5251eff469f318ae55a40fda4e558db9bcf30a543322d5a4d396d64cd
MD5 0258096925279c2b8615e0e4db475b3c
BLAKE2b-256 5cb290efcab59374ce0c7cd22e1850b2ecb965bb0c5adee1f7e1d09d7a15a242

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solace_pubsubplus-1.11.0-py36-none-win32.whl
Algorithm Hash digest
SHA256 c313ecdaab7adb8fed547ae64749ab5b850f5c4370a4c7556ee38591ebdf3d05
MD5 e93a3b540fd696ec91a59b10b2fc8394
BLAKE2b-256 b3e4eeda0c376fe0bd09b640cf657ca90b5b46e9f60902593670e77849df1ad8

See more details on using hashes here.

File details

Details for the file solace_pubsubplus-1.11.0-py36-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for solace_pubsubplus-1.11.0-py36-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 d63b75f154917e2f6e3f669b6d64bd8cf774bf37b301ab42b129ac21f7cbdb9d
MD5 9f3ed7c75d9f0b666c5deefb3aba49b1
BLAKE2b-256 77ffb36c9a348b47c868e21128d1434affad8eb7351836f7987d4f21aec397a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solace_pubsubplus-1.11.0-py36-none-manylinux_2_17_aarch64.whl
Algorithm Hash digest
SHA256 114768fe365bc79abee90852dc483e9fa5bc3fb9a4bf218e85029f8d050d0de3
MD5 5df3a74e7ba09bf7c1a55b67637316a3
BLAKE2b-256 89ec0bc2c4e1d3b80e406e9983c61b871a71db42d8d5b28f34e8edb4e0c6a82b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solace_pubsubplus-1.11.0-py36-none-manylinux_2_12_x86_64.whl
Algorithm Hash digest
SHA256 6c0deb5016a4005b4f01b8f8a16c664c0b306ffb51da4ace4d24169ffbbfbdee
MD5 2d2d8af7ef99eeeeb03b5226838cfc7a
BLAKE2b-256 40af1c754d7d819bdaf9952a429ac8309461ec5db5f87f6ca29bff6d0d35e8ae

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for solace_pubsubplus-1.11.0-py36-none-macosx_11_0_universal2.whl
Algorithm Hash digest
SHA256 f9b58a3bc2c2780744399c63db7d5c062e23effa52665c4c6dc56b838311a254
MD5 14167033d0721d83492870bf4a552b56
BLAKE2b-256 0f27d9fd4378d75929b2002c5f536a58b3e7a8ced538fa40a048919d177dd53e

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