Skip to content

Commit

Permalink
v3.23.1
Browse files Browse the repository at this point in the history
  • Loading branch information
msitt committed Jun 27, 2024
1 parent 9070af6 commit b1e0c03
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 3.23.1:
===============
- Stability and performance improvements

Version 3.23.0:
===============
- Stability and performance improvements
Expand Down
33 changes: 15 additions & 18 deletions examples/demoapps/SubscriptionExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/blpapi.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 2 additions & 2 deletions src/blpapi/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b1e0c03

Please sign in to comment.