File tree Expand file tree Collapse file tree 2 files changed +3
-32
lines changed Expand file tree Collapse file tree 2 files changed +3
-32
lines changed Original file line number Diff line number Diff line change @@ -15,35 +15,6 @@ It is designed to be fast and easy to start using while still being production q
15
15
16
16
Documentation: https://eiffellib.readthedocs.io/en/latest/
17
17
18
- .. code-block :: python
19
- :caption: Subscribing to an event
20
-
21
- import time
22
- from eiffellib.subscribers import RabbitMQSubscriber
23
-
24
-
25
- def callback (event , context ):
26
- print (event.pretty)
27
-
28
- SUBSCRIBER = RabbitMQSubscriber(host = " 127.0.0.1" , queue = " eiffel" ,
29
- exchange = " public" )
30
- SUBSCRIBER .subscribe(" EiffelActivityTriggeredEvent" , callback)
31
- SUBSCRIBER .start()
32
- while True :
33
- time.sleep(0.1 )
34
-
35
- .. code-block :: python
36
- :caption: Publishing an event
37
-
38
- from eiffellib.publishers import RabbitMQPublisher
39
- from eiffellib.events import EiffelActivityTriggeredEvent
40
-
41
- PUBLISHER = RabbitMQPublisher(host = " 127.0.0.1" )
42
- PUBLISHER .start()
43
- ACTIVITY_TRIGGERED = EiffelActivityTriggeredEvent()
44
- ACTIVITY_TRIGGERED .data.add(" name" , " Test activity" )
45
- PUBLISHER .send_event(ACTIVITY_TRIGGERED )
46
-
47
18
Features
48
19
========
49
20
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ summary = Python library for sending and receiving Eiffel events
4
4
author = Tobias Persson
5
5
6
6
license = Apache License, Version 2.0
7
- home-page = http ://github.com/eiffel-community/eiffellib
7
+ home-page = https ://github.com/eiffel-community/eiffel-pythonlib
8
8
description-file = README.rst
9
- classifiers = Development Status :: 5 - Production- Stable,
10
- Programming Language :: Python,
9
+ classifiers = Development Status :: 5 - Production/ Stable
10
+ Programming Language :: Python
11
11
License :: OSI Approved :: Apache Software License
12
12
13
13
[entry_points]
You can’t perform that action at this time.
0 commit comments