Skip to content

Latest commit

 

History

History

python-client

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Python client

This simple python client demonstrates tha access to a server, using REST and SSE.

It is compatible with the rest of the demo applications.

All the source is included within one source file: rest-client.py.

To run it, simply use:

python rest-client.py

The client goes per default to http://localhost:8080. It is a simple text client, which twice sets the standard deviation and then subscribes to the SSE stream, limiting the amount to 10 updates.

This version uses the following libraries:

  • requests for the standard http calls.
  • sseclient-py in combination with the requests lib for streaming server sent events.