more.signals
more.signals is an extension for Morepath that adds Blinker signals support.
Quickstart
The integration adds two directives to a Morepath App for connecting and disconnecting signals. Once connected you can emit to signal using request.app.signal('signal.name') to specify a named signal and then use the send() method, or you can combine both using request.app.signal('signal.name').send(self, **data). Please read Blinker’s documentation for all the details.
from more.signals import SignalApp
class App(SignalApp):
pass
@App.connect('hello')
def say_hello(sender, **data):
print('HELLO {}!'.format(data.get('name')))
@App.path(path='')
class Root(object):
pass
@App.json(model=Root)
def root_view(self, request):
name = 'Foo Bar'
request.app.signal('hello').send(self, name=name)
return {'name': name}
if __name__ == '__main__':
morepath.run(App())
CHANGES
0.1.0 (2017-01-29)
Initial public release
Metadata
Release files for more.signals 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| more.signals-0.1.0.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| more.signals-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.2 kB
Release files / more.signals-0.1.0.tar.gz
| Download URL | more.signals-0.1.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7437c492051f0b75f2ef6525f36c5e460b02aecec7aad9bb7665ae78e048106e
|
|
BLAKE2b-256 checksum How to use checksums |
e5afc40ef509c6c90ac43d1c62e4bdecc3ac6c469c923eba079c6fc25ab2e747
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / more.signals-0.1.0-py3-none-any.whl
| Download URL | more.signals-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0b58f3dfafc6daafbe41eb60871b0379cdd7287cf455fff697b403551b0560c9
|
|
BLAKE2b-256 checksum How to use checksums |
17e1255a61cb8c80ade0446ae1b8fc8d3220ed421468e4ab413c6be37edb31af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |