Skip to main content

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.

License

The Solace Messaging API for Python is dual-licensed:

  • Python source code — Licensed under the Apache License, Version 2.0.
  • Bundled C binaries (solace/messaging/lib/) — The native shared libraries for the Solace Messaging API For C (CCSMP) are proprietary software owned by Solace Corporation and are licensed under the Solace API License Agreement.

By installing or using this package you agree to the terms of the Solace API License Agreement for the bundled C binaries. The full license text, along with licenses for bundled third-party components, is included in the licenses.txt file distributed with the package.

Metadata

Release files for solace-pubsubplus 1.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for solace-pubsubplus 1.12.0
File Actions
solace_pubsubplus-1.12.0-py36-none-win_amd64.whl Python 3.6 none Windows x86-64 Details for solace_pubsubplus-1.12.0-py36-none-win_amd64.whl
solace_pubsubplus-1.12.0-py36-none-win32.whl Python 3.6 none Windows x86-32 Details for solace_pubsubplus-1.12.0-py36-none-win32.whl
solace_pubsubplus-1.12.0-py36-none-musllinux_1_2_x86_64.whl Python 3.6 none Linux musl 1.2+ x86-64 Details for solace_pubsubplus-1.12.0-py36-none-musllinux_1_2_x86_64.whl
solace_pubsubplus-1.12.0-py36-none-manylinux_2_17_aarch64.whl Python 3.6 none Linux glibc 2.17+ ARM64 Details for solace_pubsubplus-1.12.0-py36-none-manylinux_2_17_aarch64.whl
solace_pubsubplus-1.12.0-py36-none-manylinux_2_12_x86_64.whl Python 3.6 none Linux glibc 2.12+ x86-64 Details for solace_pubsubplus-1.12.0-py36-none-manylinux_2_12_x86_64.whl
solace_pubsubplus-1.12.0-py36-none-macosx_11_0_universal2.whl Python 3.6 none macOS 11.0+ universal2 (ARM64, x86-64) Details for solace_pubsubplus-1.12.0-py36-none-macosx_11_0_universal2.whl

Total release size: 27.1 MB

Release files / solace_pubsubplus-1.12.0-py36-none-win_amd64.whl

Download URL solace_pubsubplus-1.12.0-py36-none-win_amd64.whl
Size 3.0 MB
Tags Python 3.6 Windows x86-64
SHA-256 checksum
How to use checksums
e11e4079fd571c21ea523727e31f88b395be787e6f845189a8e9eaf60b773b31
BLAKE2b-256 checksum
How to use checksums
4497a67e6361676f57888c0b7eaaa3f09a65d315ce38f67b059873227d50a073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / solace_pubsubplus-1.12.0-py36-none-win32.whl

Download URL solace_pubsubplus-1.12.0-py36-none-win32.whl
Size 2.6 MB
Tags Python 3.6 Windows x86-32
SHA-256 checksum
How to use checksums
22855daf0c068e188094ee1b713141faf23307b74b3e6c37b1530eecc2c833c9
BLAKE2b-256 checksum
How to use checksums
5cfbc6a32205379652b60540ce3de8434dc5f5a69843ccca38d7c53ac884e1b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / solace_pubsubplus-1.12.0-py36-none-musllinux_1_2_x86_64.whl

Download URL solace_pubsubplus-1.12.0-py36-none-musllinux_1_2_x86_64.whl
Size 2.5 MB
Tags Linux musl 1.2+ x86-64 Python 3.6
SHA-256 checksum
How to use checksums
9ce640ab573e2b4b91aac542ba118d07164718199038ef18d2e001ac9a87b094
BLAKE2b-256 checksum
How to use checksums
5cf20abc9b0438891d5ca78934e034b2d05f19f2024af42e23edafa0956c616f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / solace_pubsubplus-1.12.0-py36-none-manylinux_2_17_aarch64.whl

Download URL solace_pubsubplus-1.12.0-py36-none-manylinux_2_17_aarch64.whl
Size 2.9 MB
Tags Linux glibc 2.17+ ARM64 Python 3.6
SHA-256 checksum
How to use checksums
a1d6dcfd8d24b36f9727f06986b13a5bde1323a30d4eee5ebd60decf224b0db2
BLAKE2b-256 checksum
How to use checksums
212f9d4ba4f54be24a617f66850d749dcb4dd638a12e0243f8b725875c6e081c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / solace_pubsubplus-1.12.0-py36-none-manylinux_2_12_x86_64.whl

Download URL solace_pubsubplus-1.12.0-py36-none-manylinux_2_12_x86_64.whl
Size 4.7 MB
Tags Linux glibc 2.12+ x86-64 Python 3.6
SHA-256 checksum
How to use checksums
b8a8e1cb35db27104cb790075b8731d6b9cd7a3bc3e3448f5a6cd73d44746e18
BLAKE2b-256 checksum
How to use checksums
c755b7d31795fbcbec2a728a2e623bbe8ee9e53e11df7ce62f2f9df52a19c4a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Release files / solace_pubsubplus-1.12.0-py36-none-macosx_11_0_universal2.whl

Download URL solace_pubsubplus-1.12.0-py36-none-macosx_11_0_universal2.whl
Size 11.3 MB
Tags Python 3.6 macOS 11.0+ universal2 (ARM64, x86-64)
SHA-256 checksum
How to use checksums
42e97b19b11cbc24711d0820882bbc03572613f466e05cdf9119995edc8c8da7
BLAKE2b-256 checksum
How to use checksums
6d5a7f3f4a36108e7df62b71074e441b2e1bafef7dc7c1d88ba270b75350612e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.2

Security for solace-pubsubplus 1.12.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page