lightstreamer-client-lib 2.2.0__tar.gz → 2.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (16) hide show
  1. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/PKG-INFO +8 -7
  2. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/README.md +5 -5
  3. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/pyproject.toml +1 -1
  4. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer/client/com_lightstreamer_net.py +1 -1
  5. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer/client/ls_python_client_api.py +13 -0
  6. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer/client/ls_python_client_haxe.py +7 -5
  7. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer/client/ls_python_client_wrapper.py +13 -0
  8. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer_client_lib.egg-info/PKG-INFO +8 -7
  9. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/LICENSE +0 -0
  10. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/setup.cfg +0 -0
  11. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/setup.py +0 -0
  12. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer/client/__init__.py +0 -0
  13. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer_client_lib.egg-info/SOURCES.txt +0 -0
  14. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer_client_lib.egg-info/dependency_links.txt +0 -0
  15. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer_client_lib.egg-info/requires.txt +0 -0
  16. {lightstreamer_client_lib-2.2.0 → lightstreamer_client_lib-2.2.2}/src/lightstreamer_client_lib.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: lightstreamer-client-lib
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Lightstreamer Client SDK
5
5
  Author-email: Lightstreamer Srl <support@lightstreamer.com>
6
6
  License: Apache-2.0
@@ -15,6 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: aiohttp>=3.8.6
17
17
  Requires-Dist: jsonpatch>=1.33
18
+ Dynamic: license-file
18
19
 
19
20
  # Lightstreamer Python Client SDK
20
21
 
@@ -34,7 +35,7 @@ The sdk is supported on Python 3.7 and above.
34
35
 
35
36
  ## Quickstart
36
37
 
37
- To connect to a Lightstreamer Server, a [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient) object has to be created, configured, and instructed to connect to the Lightstreamer Server.
38
+ To connect to a Lightstreamer Server, a [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient) object has to be created, configured, and instructed to connect to the Lightstreamer Server.
38
39
  A minimal version of the code that creates a LightstreamerClient and connects to the Lightstreamer Server on *https://push.lightstreamer.com* will look like this:
39
40
 
40
41
  ```python
@@ -44,7 +45,7 @@ client = LightstreamerClient("http://push.lightstreamer.com/","DEMO")
44
45
  client.connect()
45
46
  ```
46
47
 
47
- For each subscription to be subscribed to a Lightstreamer Server a [Subscription](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.Subscription) instance is needed.
48
+ For each subscription to be subscribed to a Lightstreamer Server a [Subscription](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.Subscription) instance is needed.
48
49
  A simple Subscription containing three items and two fields to be subscribed in *MERGE* mode is easily created (see [Lightstreamer General Concepts](https://lightstreamer.com/docs/ls-server/latest/General%20Concepts.pdf)):
49
50
 
50
51
  ```python
@@ -54,7 +55,7 @@ sub.setRequestedSnapshot("yes")
54
55
  client.subscribe(sub)
55
56
  ```
56
57
 
57
- Before sending the subscription to the server, usually at least one [SubscriptionListener](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_api.SubscriptionListener) is attached to the Subscription instance in order to consume the real-time updates. The following code shows the values of the fields *stock_name* and *last_price* each time a new update is received for the subscription:
58
+ Before sending the subscription to the server, usually at least one [SubscriptionListener](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_api.SubscriptionListener) is attached to the Subscription instance in order to consume the real-time updates. The following code shows the values of the fields *stock_name* and *last_price* each time a new update is received for the subscription:
58
59
 
59
60
  ```python
60
61
  class SubListener(SubscriptionListener):
@@ -88,7 +89,7 @@ client.connect()
88
89
 
89
90
  ## Logging
90
91
 
91
- To enable the internal client logger, create a [LoggerProvider](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_api.LoggerProvider) and set it as the default provider of [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient.setLoggerProvider).
92
+ To enable the internal client logger, create a [LoggerProvider](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_api.LoggerProvider) and set it as the default provider of [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient.setLoggerProvider).
92
93
 
93
94
  ```python
94
95
  import sys, logging
@@ -107,7 +108,7 @@ Compatible with Lightstreamer Server since version 7.4.0.
107
108
 
108
109
  - [Live demos](https://demos.lightstreamer.com/?p=lightstreamer&t=client&lclient=python)
109
110
 
110
- - [API Reference](https://lightstreamer.com/api/ls-python-client/2.2.0/index.html)
111
+ - [API Reference](https://lightstreamer.com/api/ls-python-client/2.2.2/index.html)
111
112
 
112
113
  ## Support
113
114
 
@@ -16,7 +16,7 @@ The sdk is supported on Python 3.7 and above.
16
16
 
17
17
  ## Quickstart
18
18
 
19
- To connect to a Lightstreamer Server, a [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient) object has to be created, configured, and instructed to connect to the Lightstreamer Server.
19
+ To connect to a Lightstreamer Server, a [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient) object has to be created, configured, and instructed to connect to the Lightstreamer Server.
20
20
  A minimal version of the code that creates a LightstreamerClient and connects to the Lightstreamer Server on *https://push.lightstreamer.com* will look like this:
21
21
 
22
22
  ```python
@@ -26,7 +26,7 @@ client = LightstreamerClient("http://push.lightstreamer.com/","DEMO")
26
26
  client.connect()
27
27
  ```
28
28
 
29
- For each subscription to be subscribed to a Lightstreamer Server a [Subscription](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.Subscription) instance is needed.
29
+ For each subscription to be subscribed to a Lightstreamer Server a [Subscription](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.Subscription) instance is needed.
30
30
  A simple Subscription containing three items and two fields to be subscribed in *MERGE* mode is easily created (see [Lightstreamer General Concepts](https://lightstreamer.com/docs/ls-server/latest/General%20Concepts.pdf)):
31
31
 
32
32
  ```python
@@ -36,7 +36,7 @@ sub.setRequestedSnapshot("yes")
36
36
  client.subscribe(sub)
37
37
  ```
38
38
 
39
- Before sending the subscription to the server, usually at least one [SubscriptionListener](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_api.SubscriptionListener) is attached to the Subscription instance in order to consume the real-time updates. The following code shows the values of the fields *stock_name* and *last_price* each time a new update is received for the subscription:
39
+ Before sending the subscription to the server, usually at least one [SubscriptionListener](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_api.SubscriptionListener) is attached to the Subscription instance in order to consume the real-time updates. The following code shows the values of the fields *stock_name* and *last_price* each time a new update is received for the subscription:
40
40
 
41
41
  ```python
42
42
  class SubListener(SubscriptionListener):
@@ -70,7 +70,7 @@ client.connect()
70
70
 
71
71
  ## Logging
72
72
 
73
- To enable the internal client logger, create a [LoggerProvider](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_api.LoggerProvider) and set it as the default provider of [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient.setLoggerProvider).
73
+ To enable the internal client logger, create a [LoggerProvider](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_api.LoggerProvider) and set it as the default provider of [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient.setLoggerProvider).
74
74
 
75
75
  ```python
76
76
  import sys, logging
@@ -89,7 +89,7 @@ Compatible with Lightstreamer Server since version 7.4.0.
89
89
 
90
90
  - [Live demos](https://demos.lightstreamer.com/?p=lightstreamer&t=client&lclient=python)
91
91
 
92
- - [API Reference](https://lightstreamer.com/api/ls-python-client/2.2.0/index.html)
92
+ - [API Reference](https://lightstreamer.com/api/ls-python-client/2.2.2/index.html)
93
93
 
94
94
  ## Support
95
95
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "lightstreamer-client-lib"
7
- version = "2.2.0"
7
+ version = "2.2.2"
8
8
  description = "Lightstreamer Client SDK"
9
9
  readme = "README.md"
10
10
  authors = [{ name = "Lightstreamer Srl", email = "support@lightstreamer.com" }]
@@ -90,7 +90,7 @@ class HttpClientPy:
90
90
  async def _sendAsync(self, url, body, headers, proxy, sslContext):
91
91
  if headers is None:
92
92
  headers = {}
93
- headers["Content-Type"] = "application/x-www-form-urlencoded; charset=utf-8"
93
+ headers["Content-Type"] = "text/plain; charset=utf-8"
94
94
  proxy_url, proxy_auth = build_proxy(proxy)
95
95
  try:
96
96
  session = SessionPy.getInstance()
@@ -1,3 +1,16 @@
1
+ # Copyright (C) 2023 Lightstreamer Srl
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ #      http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
  class ClientListener:
2
15
  """Interface to be implemented to listen to :class:`.LightstreamerClient` events comprehending notifications of
3
16
  connection activity and errors.
@@ -11269,9 +11269,11 @@ class com_lightstreamer_internal_Globals:
11269
11269
  self.lock.synchronized(_hx_local_2)
11270
11270
 
11271
11271
  def toString(self):
11272
- def _hx_local_0():
11273
- return "{}"
11274
- self.lock.synchronized(_hx_local_0)
11272
+ def _hx_local_1():
11273
+ def _hx_local_0():
11274
+ return "{}"
11275
+ return self.lock.synchronized(_hx_local_0)
11276
+ return _hx_local_1()
11275
11277
 
11276
11278
  com_lightstreamer_internal_Globals._hx_class = com_lightstreamer_internal_Globals
11277
11279
 
@@ -15308,8 +15310,8 @@ sys_thread__Thread_HxThread.mainThread.events = sys_thread_EventLoop()
15308
15310
  com_lightstreamer_client__ConnectionDetails_ConnectionDetails_Fields_.DEFAULT_SERVER = None
15309
15311
  com_lightstreamer_internal__Constants_Constants_Fields_.TLCP_VERSION = "TLCP-2.5.0"
15310
15312
  com_lightstreamer_internal__Constants_Constants_Fields_.FULL_TLCP_VERSION = (HxOverrides.stringOrNull(com_lightstreamer_internal__Constants_Constants_Fields_.TLCP_VERSION) + ".lightstreamer.com")
15311
- com_lightstreamer_internal__Constants_Constants_Fields_.LS_LIB_VERSION = (("2.2.0" + " build ") + "20241029")
15312
- com_lightstreamer_internal__Constants_Constants_Fields_.LS_CID = "v Wntytg4pkpW37AM3M4hwLri8M4OB72hFb"
15313
+ com_lightstreamer_internal__Constants_Constants_Fields_.LS_LIB_VERSION = (("2.2.2" + " build ") + "20250523")
15314
+ com_lightstreamer_internal__Constants_Constants_Fields_.LS_CID = "v Wntytg4pkpW37AM3O4hwLri8M4OC67h9c"
15313
15315
  com_lightstreamer_internal__Constants_Constants_Fields_.LS_LIB_NAME = "python_client"
15314
15316
  com_lightstreamer_internal__Constants_Constants_Fields_.LS_CREATE_REALM = ""
15315
15317
  LSLightstreamerClient.LIB_NAME = com_lightstreamer_internal__Constants_Constants_Fields_.LS_LIB_NAME
@@ -1,3 +1,16 @@
1
+ # Copyright (C) 2023 Lightstreamer Srl
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ #      http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
1
14
  from .ls_python_client_api import *
2
15
  from .ls_python_client_haxe import LSConsoleLoggerProvider, LSConsoleLogLevel, LSProxy, LSSubscription, LSConnectionDetails, LSConnectionOptions, LSLightstreamerClient
3
16
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: lightstreamer-client-lib
3
- Version: 2.2.0
3
+ Version: 2.2.2
4
4
  Summary: Lightstreamer Client SDK
5
5
  Author-email: Lightstreamer Srl <support@lightstreamer.com>
6
6
  License: Apache-2.0
@@ -15,6 +15,7 @@ Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
16
  Requires-Dist: aiohttp>=3.8.6
17
17
  Requires-Dist: jsonpatch>=1.33
18
+ Dynamic: license-file
18
19
 
19
20
  # Lightstreamer Python Client SDK
20
21
 
@@ -34,7 +35,7 @@ The sdk is supported on Python 3.7 and above.
34
35
 
35
36
  ## Quickstart
36
37
 
37
- To connect to a Lightstreamer Server, a [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient) object has to be created, configured, and instructed to connect to the Lightstreamer Server.
38
+ To connect to a Lightstreamer Server, a [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient) object has to be created, configured, and instructed to connect to the Lightstreamer Server.
38
39
  A minimal version of the code that creates a LightstreamerClient and connects to the Lightstreamer Server on *https://push.lightstreamer.com* will look like this:
39
40
 
40
41
  ```python
@@ -44,7 +45,7 @@ client = LightstreamerClient("http://push.lightstreamer.com/","DEMO")
44
45
  client.connect()
45
46
  ```
46
47
 
47
- For each subscription to be subscribed to a Lightstreamer Server a [Subscription](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.Subscription) instance is needed.
48
+ For each subscription to be subscribed to a Lightstreamer Server a [Subscription](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.Subscription) instance is needed.
48
49
  A simple Subscription containing three items and two fields to be subscribed in *MERGE* mode is easily created (see [Lightstreamer General Concepts](https://lightstreamer.com/docs/ls-server/latest/General%20Concepts.pdf)):
49
50
 
50
51
  ```python
@@ -54,7 +55,7 @@ sub.setRequestedSnapshot("yes")
54
55
  client.subscribe(sub)
55
56
  ```
56
57
 
57
- Before sending the subscription to the server, usually at least one [SubscriptionListener](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_api.SubscriptionListener) is attached to the Subscription instance in order to consume the real-time updates. The following code shows the values of the fields *stock_name* and *last_price* each time a new update is received for the subscription:
58
+ Before sending the subscription to the server, usually at least one [SubscriptionListener](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_api.SubscriptionListener) is attached to the Subscription instance in order to consume the real-time updates. The following code shows the values of the fields *stock_name* and *last_price* each time a new update is received for the subscription:
58
59
 
59
60
  ```python
60
61
  class SubListener(SubscriptionListener):
@@ -88,7 +89,7 @@ client.connect()
88
89
 
89
90
  ## Logging
90
91
 
91
- To enable the internal client logger, create a [LoggerProvider](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_api.LoggerProvider) and set it as the default provider of [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.0/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient.setLoggerProvider).
92
+ To enable the internal client logger, create a [LoggerProvider](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_api.LoggerProvider) and set it as the default provider of [LightstreamerClient](https://lightstreamer.com/api/ls-python-client/2.2.2/lightstreamer.html#lightstreamer.client.ls_python_client_wrapper.LightstreamerClient.setLoggerProvider).
92
93
 
93
94
  ```python
94
95
  import sys, logging
@@ -107,7 +108,7 @@ Compatible with Lightstreamer Server since version 7.4.0.
107
108
 
108
109
  - [Live demos](https://demos.lightstreamer.com/?p=lightstreamer&t=client&lclient=python)
109
110
 
110
- - [API Reference](https://lightstreamer.com/api/ls-python-client/2.2.0/index.html)
111
+ - [API Reference](https://lightstreamer.com/api/ls-python-client/2.2.2/index.html)
111
112
 
112
113
  ## Support
113
114