File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 48
48
49
49
# General information about the project.
50
50
project = u'SSE Client'
51
- copyright = u"2018, Jason Hu"
51
+ copyright = u"2018-2019 , Jason Hu"
52
52
author = u"Jason Hu"
53
53
54
54
# The version info for the project you're documenting, acts as replacement
155
155
u'SSE Client Documentation' ,
156
156
author ,
157
157
'aiohttp_sse_client' ,
158
- 'One line description of project .' ,
158
+ 'A Server-Sent Event python client base on aiohttp, provides a simple interface to process Server-Sent Event .' ,
159
159
'Miscellaneous' ),
160
160
]
161
161
Original file line number Diff line number Diff line change 4
4
5
5
To use SSE Client in a project::
6
6
7
- import aiohttp_sse_client
7
+ .. code-block :: python
8
+
9
+ from aiohttp_sse_client import client as sse_client
10
+
11
+ async with sse_client.EventSource(
12
+ ' https://stream.wikimedia.org/v2/stream/recentchange'
13
+ ) as event_source:
14
+ try :
15
+ async for event in event_source:
16
+ print (event)
17
+ except ConnectionError :
18
+ pass
You can’t perform that action at this time.
0 commit comments