pepperize.cdk-apigateway-swagger-ui 0.0.930__py3-none-any.whl → 0.0.1154__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,4 +1,4 @@
1
- Copyright (c) 2023 Pepperize UG (haftungsbeschränkt)
1
+ Copyright (c) 2024 Pepperize UG (haftungsbeschränkt)
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pepperize.cdk-apigateway-swagger-ui
3
- Version: 0.0.930
3
+ Version: 0.0.1154
4
4
  Summary: Add SwaggerUI to your AWS Apigateway RestApi
5
5
  Home-page: https://github.com/pepperize/cdk-apigateway-swagger-ui.git
6
6
  Author: Patrick Florek<patrick.florek@gmail.com>
@@ -20,11 +20,11 @@ Classifier: License :: OSI Approved
20
20
  Requires-Python: ~=3.8
21
21
  Description-Content-Type: text/markdown
22
22
  License-File: LICENSE
23
- Requires-Dist: aws-cdk-lib <3.0.0,>=2.1.0
24
- Requires-Dist: constructs <11.0.0,>=10.0.5
25
- Requires-Dist: jsii <2.0.0,>=1.93.0
26
- Requires-Dist: publication >=0.0.3
27
- Requires-Dist: typeguard ~=2.13.3
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.1.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.106.0
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard<4.3.0,>=2.13.3
28
28
 
29
29
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
30
30
  [![GitHub](https://img.shields.io/github/license/pepperize/cdk-apigateway-swagger-ui?style=flat-square)](https://github.com/pepperize/cdk-apigateway-swagger-ui/blob/main/LICENSE)
@@ -0,0 +1,9 @@
1
+ pepperize_cdk_apigateway_swagger_ui/__init__.py,sha256=WiLJER1V80uFlxsZAGnf1k3-QgNMLFfjXGlvieXc6Pk,7053
2
+ pepperize_cdk_apigateway_swagger_ui/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
+ pepperize_cdk_apigateway_swagger_ui/_jsii/__init__.py,sha256=xJl6M_tUky8K7J7So7vBDDSHVu1NWmuA3qAoQQYxKNU,1491
4
+ pepperize_cdk_apigateway_swagger_ui/_jsii/cdk-apigateway-swagger-ui@0.0.1154.jsii.tgz,sha256=6ugdXvFubT9ROuclFId9CJCbR2HymPrOz9I6ZPFg67I,5370693
5
+ pepperize.cdk_apigateway_swagger_ui-0.0.1154.dist-info/LICENSE,sha256=0WhCn6SwKzZDpNHzpOHdxOjDOiJM8xYpFVczB8hxoN0,1078
6
+ pepperize.cdk_apigateway_swagger_ui-0.0.1154.dist-info/METADATA,sha256=Vme9vIuG1JghWBNyIqIPoismQG910FkM-veNoc8cDEc,4044
7
+ pepperize.cdk_apigateway_swagger_ui-0.0.1154.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
8
+ pepperize.cdk_apigateway_swagger_ui-0.0.1154.dist-info/top_level.txt,sha256=aaTZcP-JvO8ZSlyxXd_nNGG6a49YZ2kCOLe5w-KQi_U,36
9
+ pepperize.cdk_apigateway_swagger_ui-0.0.1154.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: bdist_wheel (0.45.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,4 +1,4 @@
1
- '''
1
+ r'''
2
2
  [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com)
3
3
  [![GitHub](https://img.shields.io/github/license/pepperize/cdk-apigateway-swagger-ui?style=flat-square)](https://github.com/pepperize/cdk-apigateway-swagger-ui/blob/main/LICENSE)
4
4
  [![npm (scoped)](https://img.shields.io/npm/v/@pepperize/cdk-apigateway-swagger-ui?style=flat-square)](https://www.npmjs.com/package/@pepperize/cdk-apigateway-swagger-ui)
@@ -67,6 +67,9 @@ new SwaggerUi(stack, "SwaggerUI", { resource: restApi.root });
67
67
  * Open your SwaggerUI: `https://<rest api id>.execute-api.<aws region>.amazonaws.com/<stage>/api-docs/swagger-ui.html`
68
68
  * View your API docs: `https://<rest api id>.execute-api.<aws region>.amazonaws.com/<stage>/api-docs.json`
69
69
  '''
70
+ from pkgutil import extend_path
71
+ __path__ = extend_path(__path__, __name__)
72
+
70
73
  import abc
71
74
  import builtins
72
75
  import datetime
@@ -77,7 +80,22 @@ import jsii
77
80
  import publication
78
81
  import typing_extensions
79
82
 
80
- from typeguard import check_type
83
+ import typeguard
84
+ from importlib.metadata import version as _metadata_package_version
85
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
86
+
87
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
88
+ if TYPEGUARD_MAJOR_VERSION <= 2:
89
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
90
+ else:
91
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
92
+ pass
93
+ else:
94
+ if TYPEGUARD_MAJOR_VERSION == 3:
95
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
96
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
97
+ else:
98
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
81
99
 
82
100
  from ._jsii import *
83
101
 
@@ -1,3 +1,6 @@
1
+ from pkgutil import extend_path
2
+ __path__ = extend_path(__path__, __name__)
3
+
1
4
  import abc
2
5
  import builtins
3
6
  import datetime
@@ -8,16 +11,31 @@ import jsii
8
11
  import publication
9
12
  import typing_extensions
10
13
 
11
- from typeguard import check_type
14
+ import typeguard
15
+ from importlib.metadata import version as _metadata_package_version
16
+ TYPEGUARD_MAJOR_VERSION = int(_metadata_package_version('typeguard').split('.')[0])
17
+
18
+ def check_type(argname: str, value: object, expected_type: typing.Any) -> typing.Any:
19
+ if TYPEGUARD_MAJOR_VERSION <= 2:
20
+ return typeguard.check_type(argname=argname, value=value, expected_type=expected_type) # type:ignore
21
+ else:
22
+ if isinstance(value, jsii._reference_map.InterfaceDynamicProxy): # pyright: ignore [reportAttributeAccessIssue]
23
+ pass
24
+ else:
25
+ if TYPEGUARD_MAJOR_VERSION == 3:
26
+ typeguard.config.collection_check_strategy = typeguard.CollectionCheckStrategy.ALL_ITEMS # type:ignore
27
+ typeguard.check_type(value=value, expected_type=expected_type) # type:ignore
28
+ else:
29
+ typeguard.check_type(value=value, expected_type=expected_type, collection_check_strategy=typeguard.CollectionCheckStrategy.ALL_ITEMS) # type:ignore
12
30
 
13
31
  import aws_cdk._jsii
14
32
  import constructs._jsii
15
33
 
16
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
17
35
  "@pepperize/cdk-apigateway-swagger-ui",
18
- "0.0.930",
36
+ "0.0.1154",
19
37
  __name__[0:-6],
20
- "cdk-apigateway-swagger-ui@0.0.930.jsii.tgz",
38
+ "cdk-apigateway-swagger-ui@0.0.1154.jsii.tgz",
21
39
  )
22
40
 
23
41
  __all__ = [
@@ -1,9 +0,0 @@
1
- pepperize_cdk_apigateway_swagger_ui/__init__.py,sha256=mDZQtIyMaodl_6tdAXda1O51KB2r_rr4RwXQa7lFTKY,6008
2
- pepperize_cdk_apigateway_swagger_ui/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
3
- pepperize_cdk_apigateway_swagger_ui/_jsii/__init__.py,sha256=TW2DT8ujQXL4X8FpvyfurDJdBwTcmvVhaWP74XiGmQs,445
4
- pepperize_cdk_apigateway_swagger_ui/_jsii/cdk-apigateway-swagger-ui@0.0.930.jsii.tgz,sha256=fJRk24V5mRihqMQEl1kZMLxIgh4NJYz7gXQ-IsHRCg8,3634854
5
- pepperize.cdk_apigateway_swagger_ui-0.0.930.dist-info/LICENSE,sha256=az47MmrAaaeZIWZVK36UcPYCz0H8mI0DFHdJhzt_Bv4,1078
6
- pepperize.cdk_apigateway_swagger_ui-0.0.930.dist-info/METADATA,sha256=WEPh1yvDfaLyKZ7e_zRiEoL5Me2WQDKzZWB3aOtMlIA,4040
7
- pepperize.cdk_apigateway_swagger_ui-0.0.930.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
8
- pepperize.cdk_apigateway_swagger_ui-0.0.930.dist-info/top_level.txt,sha256=aaTZcP-JvO8ZSlyxXd_nNGG6a49YZ2kCOLe5w-KQi_U,36
9
- pepperize.cdk_apigateway_swagger_ui-0.0.930.dist-info/RECORD,,