【文件属性】:
文件名称:pyeventstore:事件存储的 Python 客户端 (https
文件大小:5KB
文件格式:ZIP
更新时间:2021-06-13 01:56:08
Python
Python 事件存储客户端
实验性客户端库。 该包依赖于asyncio ,因此只能与 Python 3.3 及更高版本一起使用。
例子
阅读事件
从流中读取所有事件
import pyeventstore , asyncio
event_store = pyeventstore . Client ( "192.168.59.103" )
def handle_events ():
subscription = yield from event_store . get_all_events ( 'ponies' )
while True :
event = yield from subscription . get ()
if event is None : # reached end of stream
brea
【文件预览】:
pyeventstore-master
----pyeventstore()
--------events.py(4KB)
--------client.py(1016B)
--------stream_page.py(806B)
--------__init__.py(77B)
----setup.py(336B)
----.gitignore(33B)
----README.md(2KB)
----LICENSE.txt(1KB)