You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project contains a simple Python script that shows a minimal client-side implementation of the [Lightstreamer Server Text mode Protocol](http://www.lightstreamer.com/docs/client_generic_base/Network%20Protocol%20Tutorial.pdf).
3
+
This project contains an example of a Python application that employs the **Lightstreamer Python Client library**.
4
4
5
5

6
6
@@ -17,15 +17,14 @@ The script shows all the basic steps required to establish an interaction to Lig
17
17
* Unsubscription from items
18
18
* Final disconnection
19
19
20
-
It is important to highlight that the example is not meant to be a complete and robust Lightstreamer Client Python library, but it could be used as a starting point to build more complex interactions with the Lightstreamer server to manage all the possible scenarios included in the protocol.
21
-
22
20
## Install
23
21
24
22
If you want to install a version of this demo pointing to your local Lightstreamer Server, follow these steps:
25
23
26
24
* Note that, as prerequisite, the [Lightstreamer - Stock- List Demo - Java Adapter](https://github.com/Lightstreamer/Lightstreamer-example-Stocklist-adapter-java) has to be deployed on your local Lightstreamer Server instance. Please check out that project and follow the installation instructions provided with it.
27
25
* Launch Lightstreamer Server.
28
-
* Go to [http://python.org/download/](http://python.org/download/) and download the appropriate **Python** (tested since version 2.6.3) for your OS and follow the instructions to install it on your system. Note that the demo currently **can not** be launched from IDLE.
26
+
* Go to [http://python.org/download/](http://python.org/download/) and download the appropriate **Python** (tested since version 3.9) for your OS and follow the instructions to install it on your system. Note that the demo currently **can not** be launched from IDLE.
27
+
* Install the latest version of the _Lightstreamer Python Client library_ from [PyPi](https://pypi.org/project/lightstreamer-client-lib/): `python -m pip install lightstreamer-client-lib`
29
28
30
29
You can now run the Python script simply executing the following commands on different OS:
31
30
@@ -53,14 +52,10 @@ and then type:
53
52
54
53
The example is configured to connect to http://push.lightstreamer.com:80, but you can easily change these settings modifying the following line:
* Compatible with Lightstreamer Server since version 6.0. Obsolete since Server version 6.1, which introduces the new TLCP protocol.
83
-
* Ensure that Generic Client API is supported by Lightstreamer Server license configuration.
84
-
* For a version of this example compatible with Lightstreamer server version 5.1.2, please refer to [this tag](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-python/tree/v1.0).
77
+
* Compatible with Lightstreamer Server since version 7.2.
0 commit comments