webex-message-handler 0.4.2__tar.gz → 0.4.3__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.
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/PKG-INFO +1 -1
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/pyproject.toml +1 -1
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/handler.py +6 -1
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/kms_client.py +0 -1
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/.gitignore +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/API.md +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/LICENSE +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/README.md +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/examples/basic_bot.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/__init__.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/device_manager.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/errors.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/logger.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/mercury_socket.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/message_decryptor.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/types.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/tests/__init__.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/tests/conftest.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/tests/test_device_manager.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/tests/test_handler.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/tests/test_integration.py +0 -0
- {webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/tests/test_message_decryptor.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webex-message-handler
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.3
|
|
4
4
|
Summary: Lightweight Webex Mercury WebSocket + KMS decryption for receiving bot messages without the full Webex SDK
|
|
5
5
|
Project-URL: Homepage, https://github.com/3rg0n/webex-message-handler
|
|
6
6
|
Project-URL: Repository, https://github.com/3rg0n/webex-message-handler
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "webex-message-handler"
|
|
7
|
-
version = "0.4.
|
|
7
|
+
version = "0.4.3"
|
|
8
8
|
description = "Lightweight Webex Mercury WebSocket + KMS decryption for receiving bot messages without the full Webex SDK"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
{webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/handler.py
RENAMED
|
@@ -144,7 +144,12 @@ class WebexMessageHandler:
|
|
|
144
144
|
) -> FetchFunction:
|
|
145
145
|
"""Create HTTP adapter using native aiohttp."""
|
|
146
146
|
async def http_do(request: FetchRequest) -> FetchResponse:
|
|
147
|
-
|
|
147
|
+
# When a shared connector is provided, don't let the session close it.
|
|
148
|
+
# When no connector is provided, let the session own (and close) the auto-created one.
|
|
149
|
+
session = aiohttp.ClientSession(
|
|
150
|
+
connector=connector,
|
|
151
|
+
connector_owner=connector is None,
|
|
152
|
+
)
|
|
148
153
|
try:
|
|
149
154
|
response = await session.request(
|
|
150
155
|
request.method,
|
{webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/kms_client.py
RENAMED
|
@@ -50,7 +50,6 @@ class KmsClient:
|
|
|
50
50
|
self._encryption_service_url = encryption_service_url
|
|
51
51
|
self._http_do = http_do
|
|
52
52
|
self._logger: Logger = logger or noop_logger # type: ignore[assignment]
|
|
53
|
-
self._connector = connector
|
|
54
53
|
|
|
55
54
|
self._kms_cluster: str = ""
|
|
56
55
|
self._ephemeral_key: jwk.JWK | None = None
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/errors.py
RENAMED
|
File without changes
|
{webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/logger.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{webex_message_handler-0.4.2 → webex_message_handler-0.4.3}/src/webex_message_handler/types.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|