Shout!
Loud Python messaging.
Shout is a single module providing simple messaging vocabulary for small applications. Shout is NOT a distributed messaging framework.
from shout import Message, hears, shout
class WhoAreYou(Message):
pass
@hears(WhoAreYou)
def lucky_day():
return "We are..."
@hears(WhoAreYou)
def dusty_bottoms():
return "The threeee..."
@hears(WhoAreYou)
def ned_nederlander():
return "Amigos!!"
msg = shout(WhoAreYou)
print("".join(msg.results))
# We are...The threeee...Amigos!!
Why Shout
Decoupling of a GUI and it’s behavior
PySide/PyQt signals are bound to widgets making it harder to decouple widgets. You have to explicitly connect each widget’s signals with their slots which could live deep in a hierarchy of widgets.
Shout Messages are classes themselves, readily available to all other objects in their scope. Shout from inside, outside, top, or bottom of a widget hierarchy, Messages will still get to where they need to go!
Shout is a single module, easily included with any package.
It’s easy and fun to use.
Get Shout
Shout is available through the python package index as pyshout.
pip install pyshout
Note that only the python package name is pyshout, the module it installs is simply shout.
Documentation
For more information visit the docs.
Metadata
Release files for pyshout 0.2.3
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 | Actions |
|---|---|---|---|---|
| pyshout-0.2.3.tar.gz | 5.1 kB | Without provenance | Details for pyshout-0.2.3.tar.gz |
Release files / pyshout-0.2.3.tar.gz
| Download URL | pyshout-0.2.3.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8dff905d7a2683f61e12e645e9e3c8a3a25b0e9ecf6e82ed2fe4aca1bb1d5897
|
|
BLAKE2b-256 checksum How to use checksums |
f49ce06fe6883b208d2f61eae41793b7fd27596238eb6c26724ff7e2a313abcc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyshout 0.2.3
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.