Classic Messaging
This package provides abstract classes for message queues.
Usage:
from classic.components import component
from classic.messaging import Message, Publisher
@component
class SomeService:
publisher: Publisher
def do_some_work(self):
message = Message('target', 'Some very useful info')
self.publisher.publish(message)
Publisher have inner buffer. Messages can be planned for publishing, and will be published later
Usage with deferred publishing:
from classic.components import component
from classic.messaging import Message, Publisher
@component
class SomeService:
publisher: Publisher
def create_message(self):
message = Message('target', 'Some very useful info')
self.publisher.plan(message)
def do_some_work(self):
try:
self.create_message()
except Exception:
self.publisher.reset()
raise
else:
self.publisher.flush()
Usage with join_points:
from classic.components import component
from classic.messaging import Message, Publisher
from classic.aspects import join_poin
@component
class SomeService:
publisher: Publisher
@join_poin
def do_some_work(self):
message = Message('target', 'Some very useful info')
self.publisher.plan(message)
class RealPublisher(Publisher):
def publish(self, message):
print(message)
publisher = RealPublisher()
SomeService.do_some_work.join(publisher)
Metadata
Release files for classic-messaging 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| classic-messaging-0.0.2.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| classic_messaging-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.4 kB
Release files / classic-messaging-0.0.2.tar.gz
| Download URL | classic-messaging-0.0.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4005d5709c18665811d075bd106e1c3384049cfa16a2dde916822a63fd2b0a94
|
|
BLAKE2b-256 checksum How to use checksums |
6d6f14540c0eb5b76540e1f1b5587ef738baf6e04e93e0010b78938f3a92d12f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3
|
Release files / classic_messaging-0.0.2-py3-none-any.whl
| Download URL | classic_messaging-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fcce7b730e64704a88916b0df233f6bc95631d83c061680a368f2c941e81e5b
|
|
BLAKE2b-256 checksum How to use checksums |
31fe47ab391f8308d8e60dbe3fc2f6001cfcd86418aadfe37d416a5f6ddaddd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.3
|
Security for classic-messaging 0.0.2
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.