From b1e0c0366f174066b6be11ca6b0f984ee0ba08fd Mon Sep 17 00:00:00 2001 From: Marland Sitt Date: Thu, 27 Jun 2024 14:12:44 -0700 Subject: [PATCH] v3.23.1 --- PKG-INFO | 2 +- changelog.txt | 4 +++ examples/demoapps/SubscriptionExample.py | 33 +++++++++++------------- src/blpapi.egg-info/PKG-INFO | 2 +- src/blpapi/version.py | 4 +-- 5 files changed, 23 insertions(+), 22 deletions(-) diff --git a/PKG-INFO b/PKG-INFO index 9cc63d7..f0ee258 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: blpapi -Version: 3.23.0 +Version: 3.23.1 Summary: Python SDK for Bloomberg BLPAPI Home-page: http://www.bloomberglabs.com/api/ Author: Bloomberg L.P. diff --git a/changelog.txt b/changelog.txt index 5b56245..f3494dd 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,7 @@ +Version 3.23.1: +=============== +- Stability and performance improvements + Version 3.23.0: =============== - Stability and performance improvements diff --git a/examples/demoapps/SubscriptionExample.py b/examples/demoapps/SubscriptionExample.py index 9a46ca2..12e0833 100644 --- a/examples/demoapps/SubscriptionExample.py +++ b/examples/demoapps/SubscriptionExample.py @@ -62,26 +62,23 @@ def processMiscEvents(self, event): + "when SlowConsumerWarning message was delivered, " + "it is now safe to continue as normal.\n" ) - elif msg.messageType() == blpapi.Names.DATA_LOSS: - print(msg) - topic = msg.correlationId().value() - print( - f"{blpapi.Names.DATA_LOSS} - The application is too slow to " - + "process events and the event queue is overflowing. " - + f"Data is lost for topic {topic}.\n" - ) - elif event.eventType() == blpapi.Event.SESSION_STATUS: - # SESSION_STATUS events can happen at any time and - # should be handled as the session can be terminated, - # e.g. session identity can be revoked at a later - # time, which terminates the session. - if msg.messageType() == blpapi.Names.SESSION_TERMINATED: - print("Session terminated") - return - else: - print(msg) else: print(msg) + if msg.messageType() == blpapi.Names.DATA_LOSS: + topic = msg.correlationId().value() + print( + f"{blpapi.Names.DATA_LOSS} - The application is too slow to " + + "process events and the event queue is overflowing. " + + f"Data is lost for topic {topic}.\n" + ) + elif event.eventType() == blpapi.Event.SESSION_STATUS: + # SESSION_STATUS events can happen at any time and + # should be handled as the session can be terminated, + # e.g. session identity can be revoked at a later + # time, which terminates the session. + if msg.messageType() == blpapi.Names.SESSION_TERMINATED: + print("Session terminated") + return def processEvent(self, event, _session): try: diff --git a/src/blpapi.egg-info/PKG-INFO b/src/blpapi.egg-info/PKG-INFO index 9cc63d7..f0ee258 100644 --- a/src/blpapi.egg-info/PKG-INFO +++ b/src/blpapi.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: blpapi -Version: 3.23.0 +Version: 3.23.1 Summary: Python SDK for Bloomberg BLPAPI Home-page: http://www.bloomberglabs.com/api/ Author: Bloomberg L.P. diff --git a/src/blpapi/version.py b/src/blpapi/version.py index fffde46..49e54e1 100644 --- a/src/blpapi/version.py +++ b/src/blpapi/version.py @@ -4,8 +4,8 @@ from . import versionhelper -__version__ = "3.23.0" -__expected_cpp_sdk_version__ = "3.23" +__version__ = "3.23.1" +__expected_cpp_sdk_version__ = "3.23.2" def print_version() -> None: