Skip to content

Commit 0daede4

Browse files
committed
switch to lightstreamer-client-lib 1.0.0
1 parent 72e1cc9 commit 0daede4

File tree

4 files changed

+59
-425
lines changed

4 files changed

+59
-425
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
__pycache__
2+
.python-version

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lightstreamer - Basic Stock-List Demo - Python Client
22

3-
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**.
44

55
![screenshot](screen_python_large.png)
66

@@ -17,15 +17,14 @@ The script shows all the basic steps required to establish an interaction to Lig
1717
* Unsubscription from items
1818
* Final disconnection
1919

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-
2220
## Install
2321

2422
If you want to install a version of this demo pointing to your local Lightstreamer Server, follow these steps:
2523

2624
* 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.
2725
* 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`
2928

3029
You can now run the Python script simply executing the following commands on different OS:
3130

@@ -53,14 +52,10 @@ and then type:
5352

5453
The example is configured to connect to http://push.lightstreamer.com:80, but you can easily change these settings modifying the following line:
5554

56-
```lightstreamer_client = LSClient("http://push.lightstreamer.com:80", "DEMO")```
55+
```lightstreamer_client = LightstreamerClient("http://push.lightstreamer.com:80", "DEMO")```
5756

5857
to connect to the correct combination of host and port of your Lightstreamer server.
5958

60-
## See Also
61-
62-
* [A Python Client Example for Lightstreamer](http://blog.lightstreamer.com/2015/01/a-python-client-example-for_14.html)
63-
6459
### Lightstreamer Adapters Needed by this Demo Client
6560

6661
<!-- START RELATED_ENTRIES -->
@@ -70,15 +65,13 @@ to connect to the correct combination of host and port of your Lightstreamer ser
7065

7166
### Related Projects
7267

68+
* [Demos](https://demos.lightstreamer.com)
7369
* [Lightstreamer - Stock-List Demos - HTML Clients](https://github.com/Lightstreamer/Lightstreamer-example-Stocklist-client-javascript)
7470
* [Lightstreamer - Basic Stock-List Demo - jQuery (jqGrid) Client](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-jquery)
7571
* [Lightstreamer - Stock-List Demo - Dojo Toolkit Client](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-dojo)
7672
* [Lightstreamer - Basic Stock-List Demo - Java SE (Swing) Client](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-java)
7773
* [Lightstreamer - Basic Stock-List Demo - .NET Client](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-dotnet)
78-
* [Lightstreamer - Stock-List Demos - Flex Clients](https://github.com/Lightstreamer/Lightstreamer-example-StockList-client-flex)
7974

8075
## Lightstreamer Compatibility Notes
8176

82-
* 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

Comments
 (0)