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
1515
1616Documentation: https://eiffellib.readthedocs.io/en/latest/
1717
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-
4718Features
4819========
4920
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ summary = Python library for sending and receiving Eiffel events
44author = Tobias Persson
5566license = Apache License, Version 2.0
7- home-page = http ://github.com/eiffel-community/eiffellib
7+ home-page = https ://github.com/eiffel-community/eiffel-pythonlib
88description-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
1111 License :: OSI Approved :: Apache Software License
1212
1313[entry_points]
You can’t perform that action at this time.
0 commit comments