mpt-extension-sdk 5.1.1__py3-none-any.whl → 5.1.2__py3-none-any.whl

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.
@@ -1,5 +1,5 @@
1
- from collections.abc import MutableMapping, Sequence
2
- from typing import Any, Callable
1
+ from collections.abc import Callable, MutableMapping, Sequence
2
+ from typing import Any
3
3
 
4
4
  from .dataclasses import Event, EventType
5
5
 
@@ -1,6 +1,6 @@
1
1
  import logging
2
- from collections.abc import Mapping
3
- from typing import Any, Callable
2
+ from collections.abc import Callable, Mapping
3
+ from typing import Any
4
4
 
5
5
  import jwt
6
6
  from django.http import HttpRequest
@@ -1,5 +1,5 @@
1
1
  from abc import ABC, abstractmethod
2
- from typing import Callable
2
+ from collections.abc import Callable
3
3
 
4
4
  from mpt_extension_sdk.flows.context import Context
5
5
  from mpt_extension_sdk.mpt_http.base import MPTClient
@@ -67,7 +67,7 @@ class OrderEventProducer(EventProducer):
67
67
  orders = self.get_processing_orders()
68
68
  orders, contexts = self.filter_and_enrich(self.client, orders)
69
69
  logger.info(f"{len(orders)} orders found for processing...")
70
- for order, context in zip(orders, contexts):
70
+ for order, context in zip(orders, contexts, strict=False):
71
71
  self.dispatcher.dispatch_event(
72
72
  Event(order["id"], "orders", order, context)
73
73
  )
@@ -0,0 +1,40 @@
1
+ Metadata-Version: 2.4
2
+ Name: mpt-extension-sdk
3
+ Version: 5.1.2
4
+ Summary: Extensions SDK for SoftwareONE Marketplace Platform
5
+ Author: SoftwareOne AG
6
+ License: Apache-2.0 license
7
+ License-File: LICENSE
8
+ Requires-Python: <4,>=3.12
9
+ Requires-Dist: azure-identity<2,>=1.21.0
10
+ Requires-Dist: azure-keyvault-secrets<5,>=4.9.0
11
+ Requires-Dist: azure-monitor-opentelemetry-exporter==1.0.0b25
12
+ Requires-Dist: boto3==1.34.*
13
+ Requires-Dist: click==8.1.*
14
+ Requires-Dist: debugpy==1.8.*
15
+ Requires-Dist: django-ninja==1.1.*
16
+ Requires-Dist: django==4.2.*
17
+ Requires-Dist: gunicorn==23.0.*
18
+ Requires-Dist: jinja2==3.1.*
19
+ Requires-Dist: markdown-it-py==3.0.*
20
+ Requires-Dist: openpyxl==3.1.*
21
+ Requires-Dist: opentelemetry-api==1.30.*
22
+ Requires-Dist: opentelemetry-instrumentation-django==0.51b0
23
+ Requires-Dist: opentelemetry-instrumentation-logging==0.51b0
24
+ Requires-Dist: opentelemetry-instrumentation-requests==0.51b0
25
+ Requires-Dist: opentelemetry-sdk==1.30.*
26
+ Requires-Dist: phonenumbers==8.13.*
27
+ Requires-Dist: pyairtable==2.3.*
28
+ Requires-Dist: pyfiglet==1.0.*
29
+ Requires-Dist: pyjwt==2.8.*
30
+ Requires-Dist: pymsteams==0.2.*
31
+ Requires-Dist: regex<2025,>=2024.7.24
32
+ Requires-Dist: requests==2.32.*
33
+ Requires-Dist: rich==13.7.*
34
+ Requires-Dist: types-openpyxl==3.1.*
35
+ Requires-Dist: typing-extensions==4.9.*
36
+ Requires-Dist: watchfiles==0.21.*
37
+ Description-Content-Type: text/markdown
38
+
39
+ # swo-extension-sdk
40
+ SDK for SoftwareONE python extensions
@@ -1,16 +1,16 @@
1
1
  mpt_extension_sdk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mpt_extension_sdk/airtable/wrap_http_error.py,sha256=Shiy4uwpdpgkevooLjhpe1grhgJRj7cV6lUMMCQKogc,1263
3
2
  mpt_extension_sdk/constants.py,sha256=4LyR-sUD9-V226jG4cRXKqXKeqjwAj1euL4XRURSfQw,304
3
+ mpt_extension_sdk/airtable/wrap_http_error.py,sha256=Shiy4uwpdpgkevooLjhpe1grhgJRj7cV6lUMMCQKogc,1263
4
4
  mpt_extension_sdk/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
- mpt_extension_sdk/core/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- mpt_extension_sdk/core/events/dataclasses.py,sha256=wBxjEmjzIwpSH4trpCQKYQPNzONBAgr8eQzTr3ulzkA,469
7
- mpt_extension_sdk/core/events/registry.py,sha256=RbiAem_FZk4W137xTILm0hRav46pII1dgXxVriBDxOo,1268
8
5
  mpt_extension_sdk/core/extension.py,sha256=s0QE2s99RMywfKQRZrYqOdWxELQvlFFVZMwm0xo2hhw,266
9
- mpt_extension_sdk/core/security.py,sha256=0eCed1cmaNK1rCpgnsN9zw6wzr4m_Qb9aKxscO0uyYk,1419
6
+ mpt_extension_sdk/core/security.py,sha256=aa5fNCMFoX0IrVn3P2D409GOlAbjNmKprgtIEI8Fn7k,1419
10
7
  mpt_extension_sdk/core/utils.py,sha256=LsvciwlVBJCBbd7L1rIWrTo_8Fi-W_SkL6IEezKUb4s,362
8
+ mpt_extension_sdk/core/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
+ mpt_extension_sdk/core/events/dataclasses.py,sha256=wBxjEmjzIwpSH4trpCQKYQPNzONBAgr8eQzTr3ulzkA,469
10
+ mpt_extension_sdk/core/events/registry.py,sha256=v-SoHLQGLrE21e45fhkLElr0IBF8E3Z2tHF3xtaJNH4,1268
11
11
  mpt_extension_sdk/flows/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  mpt_extension_sdk/flows/context.py,sha256=J_U9nTtY89mUvrcOqdgpk-21F8f6YENSmjxgpVK6XWs,964
13
- mpt_extension_sdk/flows/pipeline.py,sha256=3BO5X3jvuYnRTWrXRzImjVCVOCut8dSvkT2LZwfpaZk,1374
13
+ mpt_extension_sdk/flows/pipeline.py,sha256=Wj98EuZJrjIw4pcmmJEOSsQWk5fLGS_GnVTo5coh9MI,1383
14
14
  mpt_extension_sdk/key_vault/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  mpt_extension_sdk/key_vault/base.py,sha256=RVG_Wiq-MrPyngJ4gfUd8oxoh1LUop1SvtCM2xdlx8M,3361
16
16
  mpt_extension_sdk/mpt_http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -19,29 +19,29 @@ mpt_extension_sdk/mpt_http/mpt.py,sha256=GhVv3JQahztrGO3n0Jnv-rkoujlP3xkOV2T_tMo
19
19
  mpt_extension_sdk/mpt_http/utils.py,sha256=3wJTT84CXYGjZw6FksNDX8tIHijkL3Wcmld9r6Iz0xc,95
20
20
  mpt_extension_sdk/mpt_http/wrap_http_error.py,sha256=j8K6Ddx7NiM-FPRMQi25vuULAW8LXxzZ4EwuIJufxis,1801
21
21
  mpt_extension_sdk/runtime/__init__.py,sha256=PQSAz9qvXHbxrn4KvuXSHB8y-A4Jpgbm6ZV-wPiNPyw,194
22
+ mpt_extension_sdk/runtime/initializer.py,sha256=3gX9OAeTp2lsgsP0h3HVzkEUvCTa9fBIsBGVo7E6JFY,2229
23
+ mpt_extension_sdk/runtime/logging.py,sha256=wJ6KyvnuvMZELI1Hd0fYbuHr7YiP3GIXFBvvSdmd7nQ,885
24
+ mpt_extension_sdk/runtime/master.py,sha256=O0zH_mrDotoPO8ytTcUhaHaBi0X3B2OAbTSXqudJoJc,4470
25
+ mpt_extension_sdk/runtime/swoext.py,sha256=LS0YZXwQsHDaYjalDGfYQi5cAL3aKQhphf3chrNmNBk,1665
26
+ mpt_extension_sdk/runtime/utils.py,sha256=ZnRWIBwYzOerx30KFmBXLUe19qzwE4JFNkNMGVqjuyk,3365
27
+ mpt_extension_sdk/runtime/workers.py,sha256=k25jFlh-NdHVqeMV2AgoC6IHIlbRHcDoRB5xqWwMPFg,2411
22
28
  mpt_extension_sdk/runtime/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
29
  mpt_extension_sdk/runtime/commands/django.py,sha256=VHszc3KctzSkhewAqbQMkRBG7cuMPWxzn7dHrRGm8y8,892
24
30
  mpt_extension_sdk/runtime/commands/run.py,sha256=1Qrqr2Hq1J8JvXtmEdgUNU9u3JLd_92-NR9MKrZOFxo,1052
25
31
  mpt_extension_sdk/runtime/djapp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
26
32
  mpt_extension_sdk/runtime/djapp/apps.py,sha256=YA1G5HaRqFBS-0DfYQuFpMgzUCYpu5T8x5LEC6MwI_M,1398
33
+ mpt_extension_sdk/runtime/djapp/middleware.py,sha256=oAA5khXW6xeUjnOV63pNCF4D7QFVD6PayIa_489KRmg,555
27
34
  mpt_extension_sdk/runtime/djapp/conf/__init__.py,sha256=_sHo76rGeXSTH8bW3pacyGFfNYSln8oLRwOSstYOmco,350
28
35
  mpt_extension_sdk/runtime/djapp/conf/default.py,sha256=vOtxAZkIJ78D1p1mua3Ls6BwmNybW7NZl2G7F3jb33k,6120
29
36
  mpt_extension_sdk/runtime/djapp/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
30
37
  mpt_extension_sdk/runtime/djapp/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
38
  mpt_extension_sdk/runtime/djapp/management/commands/consume_events.py,sha256=1rfldJpnKgpgAhW15wkJ_TLb_TKimkC5hryn1TPEfuk,1100
32
- mpt_extension_sdk/runtime/djapp/middleware.py,sha256=oAA5khXW6xeUjnOV63pNCF4D7QFVD6PayIa_489KRmg,555
33
39
  mpt_extension_sdk/runtime/events/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
34
40
  mpt_extension_sdk/runtime/events/dispatcher.py,sha256=GYICBuA9bO38TgDk0FKS_Z9D-8YB-tmNf4O_pUxuomc,2801
35
- mpt_extension_sdk/runtime/events/producers.py,sha256=zrJJzdjqMZeqotL1FZY_1sKo_7vX9InWG7HH9t6H4V4,3590
41
+ mpt_extension_sdk/runtime/events/producers.py,sha256=dv-PWN9hKOBxT6nyLWezjZxUq6NpPz8Jq-cOiVEcDUY,3604
36
42
  mpt_extension_sdk/runtime/events/utils.py,sha256=bxFo-iQUqEJDqcIotC88Ty3Xt0K2FyYjA9UMWFEyMKI,2663
37
- mpt_extension_sdk/runtime/initializer.py,sha256=3gX9OAeTp2lsgsP0h3HVzkEUvCTa9fBIsBGVo7E6JFY,2229
38
- mpt_extension_sdk/runtime/logging.py,sha256=wJ6KyvnuvMZELI1Hd0fYbuHr7YiP3GIXFBvvSdmd7nQ,885
39
- mpt_extension_sdk/runtime/master.py,sha256=O0zH_mrDotoPO8ytTcUhaHaBi0X3B2OAbTSXqudJoJc,4470
40
- mpt_extension_sdk/runtime/swoext.py,sha256=LS0YZXwQsHDaYjalDGfYQi5cAL3aKQhphf3chrNmNBk,1665
41
- mpt_extension_sdk/runtime/utils.py,sha256=ZnRWIBwYzOerx30KFmBXLUe19qzwE4JFNkNMGVqjuyk,3365
42
- mpt_extension_sdk/runtime/workers.py,sha256=k25jFlh-NdHVqeMV2AgoC6IHIlbRHcDoRB5xqWwMPFg,2411
43
- mpt_extension_sdk-5.1.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
44
- mpt_extension_sdk-5.1.1.dist-info/METADATA,sha256=AtuHTJh9f3323XeqJvDbSYaFMk2uFac2UzH-6L2tZmU,1666
45
- mpt_extension_sdk-5.1.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
46
- mpt_extension_sdk-5.1.1.dist-info/entry_points.txt,sha256=8uZQihFseK4Kp5XWHl9EDYneg-CLS8BFO-ygp0h34nc,143
47
- mpt_extension_sdk-5.1.1.dist-info/RECORD,,
43
+ mpt_extension_sdk-5.1.2.dist-info/METADATA,sha256=OXZAB-PbGFnn59sPTgS1ffSHJH6dxpPX7iEaX6zUbCM,1386
44
+ mpt_extension_sdk-5.1.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
45
+ mpt_extension_sdk-5.1.2.dist-info/entry_points.txt,sha256=N8T9gBssEOm_UeBf9ABbGqtlnethrumfMoL4hNYWVFA,146
46
+ mpt_extension_sdk-5.1.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
47
+ mpt_extension_sdk-5.1.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 2.1.3
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -0,0 +1,5 @@
1
+ [console_scripts]
2
+ swoext = mpt_extension_sdk.runtime.swoext:main
3
+
4
+ [swo.mpt.sdk]
5
+ app_config = mpt_extension_sdk.runtime.djapp.apps:ExtensionConfig
@@ -1,44 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: mpt-extension-sdk
3
- Version: 5.1.1
4
- Summary: Extensions SDK for SoftwareONE Marketplace Platform
5
- License: Apache-2.0
6
- Author: SoftwareOne AG
7
- Requires-Python: >=3.12,<4
8
- Classifier: License :: OSI Approved :: Apache Software License
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: Programming Language :: Python :: 3.12
11
- Classifier: Programming Language :: Python :: 3.13
12
- Requires-Dist: azure-identity (>=1.21.0,<2.0.0)
13
- Requires-Dist: azure-keyvault-secrets (>=4.9.0,<5.0.0)
14
- Requires-Dist: azure-monitor-opentelemetry-exporter (==1.0.0b25)
15
- Requires-Dist: boto3 (==1.34.*)
16
- Requires-Dist: click (==8.1.*)
17
- Requires-Dist: debugpy (==1.8.*)
18
- Requires-Dist: django (==4.2.*)
19
- Requires-Dist: django-ninja (==1.1.*)
20
- Requires-Dist: gunicorn (==23.0.*)
21
- Requires-Dist: jinja2 (==3.1.*)
22
- Requires-Dist: markdown-it-py (==3.0.*)
23
- Requires-Dist: openpyxl (==3.1.*)
24
- Requires-Dist: opentelemetry-api (==1.30.*)
25
- Requires-Dist: opentelemetry-instrumentation-django (==0.51b0)
26
- Requires-Dist: opentelemetry-instrumentation-logging (==0.51b0)
27
- Requires-Dist: opentelemetry-instrumentation-requests (==0.51b0)
28
- Requires-Dist: opentelemetry-sdk (==1.30.*)
29
- Requires-Dist: phonenumbers (==8.13.*)
30
- Requires-Dist: pyairtable (==2.3.*)
31
- Requires-Dist: pyfiglet (==1.0.*)
32
- Requires-Dist: pyjwt (==2.8.*)
33
- Requires-Dist: pymsteams (==0.2.*)
34
- Requires-Dist: regex (>=2024.7.24,<2025.0.0)
35
- Requires-Dist: requests (==2.32.*)
36
- Requires-Dist: rich (==13.7.*)
37
- Requires-Dist: types-openpyxl (==3.1.*)
38
- Requires-Dist: typing-extensions (==4.9.*)
39
- Requires-Dist: watchfiles (==0.21.*)
40
- Description-Content-Type: text/markdown
41
-
42
- # swo-extension-sdk
43
- SDK for SoftwareONE python extensions
44
-
@@ -1,6 +0,0 @@
1
- [console_scripts]
2
- swoext=mpt_extension_sdk.runtime.swoext:main
3
-
4
- [swo.mpt.sdk]
5
- app_config=mpt_extension_sdk.runtime.djapp.apps:ExtensionConfig
6
-