Skip to main content

Overview

This package offers a “publish-subscribe” framework.

The framework can be used to implement basic “actors” where each “actor” is contained in a python module. The function “upub” can be used to queue a message in front instead of the normal tail.

Small Example

## Actor 1 in module1.py
##
from subpub import sub, pub

@sub
def on_topic1(param1):
    print "module1/topic1: ", param1

@sub
def on_topic2(param1):
    print "module1/topic2: ", param1


## Actor 2 in module2.py
##
from subpub import sub, pub

@sub
def on_topic1(param1):
    print "module2/topic1: ", param1

pub("topic1", "value1")
pub("topic2", "value2")

The example above would yield:

"module1/topic1: value1"
"module2/topic1: value1"
"module1/topic2: value2"

Metadata

Release files for pysubpub 0.2.0

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

Source distributions (sdists)

Source distribution for pysubpub 0.2.0
File Size Uploaded Provenance Actions
pysubpub-0.2.0.zip 7.2 kB Without provenance Details for pysubpub-0.2.0.zip
pysubpub-0.2.0.tar.gz 4.1 kB Without provenance Details for pysubpub-0.2.0.tar.gz

Release files / pysubpub-0.2.0.zip

Download URL pysubpub-0.2.0.zip
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
64e45425a9b133a4e1408a09408cb57083270f90f86d4d7fb30dcd4250fa7c16
BLAKE2b-256 checksum
How to use checksums
2969aaf9773c43ca036678352ba12aae93a6daedd3de35a826023d0306284109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pysubpub-0.2.0.tar.gz

Download URL pysubpub-0.2.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
965c601e7401522b4c22c7764e95c2c2bbb00f0e85d83bb019c6b33ad8c607ed
BLAKE2b-256 checksum
How to use checksums
7c639b66971d25395e6eef25489ea35adaa9a7dd1aa03fef11c348f8c08cd61e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for pysubpub 0.2.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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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