Skip to content

Commit

Permalink
Updates for v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Dec 22, 2023
1 parent 267dbd4 commit ea73206
Show file tree
Hide file tree
Showing 7 changed files with 119 additions and 89 deletions.
4 changes: 2 additions & 2 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FINBOURNE Technology

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.1.898
- Package version: 2.0.2
- API version: 0.1.899
- Package version: 2.0.3
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)

Expand Down
Binary file not shown.
Binary file added sdk/dist/lusid_notifications_sdk-2.0.3.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion sdk/lusid_notifications/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def to_debug_report(self):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 0.1.898\n"\
"Version of the API: 0.1.899\n"\
"SDK Package Version: {package_version}".\
format(env=sys.platform, pyversion=sys.version, package_version=package_version)

Expand Down
16 changes: 13 additions & 3 deletions sdk/lusid_notifications/extensions/api_client_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ def __init__(
] = keep_alive_socket_options(),
correlation_id: Optional[str] = None,
app_name: Optional[str] = None,
client_session: Optional[ClientSession] = None
client_session: Optional[ClientSession] = None,
trace_configs: Optional[List[TraceConfig]] = None
):
"""Create an ApiClientFactory which can build api
objects with a configured ApiClient object
Expand All @@ -161,7 +162,7 @@ def __init__(
----------
config_loaders : Iterable[ConfigurationLoader], optional
An Iterable of ConfigurationLoaders we can load configuration from.
Config settings are updated by each loader (last write wins), ]
Config settings are updated by each loader (last write wins),
by default default_config_loaders
id_provider_response_handler : Callable[[Response], None], optional
A function that is called when a response is received from the token_url,
Expand All @@ -179,6 +180,9 @@ def __init__(
An aiohttp.ClientSession, pass this to re-use
connections across different ApiFactories,
by default None
trace_configs: Optional[List[TraceConfig]], optional
A list of aiohttp TraceConfigs, used to set up request tracing.
by default None
"""
api_config = get_api_configuration(config_loaders=config_loaders)
api_client_config = api_config.build_api_client_config(
Expand All @@ -193,13 +197,19 @@ def __init__(
try:
if client_session is not None:
connector = client_session.connector
# by default take explicitly passed trace_config param
# otherwise copy from session.
trace_configs = trace_configs or client_session.trace_configs
else:
connector = rc.pool_manager.connector
if tcp_keep_alive:
connector = TcpKeepAliveConnector(connector=connector, socket_options=socket_options)
# dereference connector so existing session closes correctly
rc.pool_manager._connector = None
rc.pool_manager = ClientSession(
connector=connector,
trust_env=True
trust_env=True,
trace_configs=trace_configs
)
except AttributeError:
logger.exception("client_session must be an aiohttp.ClientSession"
Expand Down
184 changes: 102 additions & 82 deletions sdk/poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sdk/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "lusid-notifications-sdk"
version = "2.0.2"
version = "2.0.3"
description = "FINBOURNE Notifications API"
authors = ["FINBOURNE Technology <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit ea73206

Please sign in to comment.