aio-kong 3.3.2__py3-none-any.whl → 3.4.0__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,29 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: aio-kong
3
- Version: 3.3.2
3
+ Version: 3.4.0
4
4
  Summary: Asynchronous Kong Client
5
5
  License: BSD-3-Clause
6
6
  Author: Luca
7
7
  Author-email: luca@quantmind.com
8
8
  Requires-Python: >=3.10,<4.0
9
- Classifier: Development Status :: 5 - Production/Stable
10
- Classifier: Environment :: Web Environment
11
- Classifier: Framework :: AsyncIO
12
- Classifier: Intended Audience :: Developers
13
9
  Classifier: License :: OSI Approved :: BSD License
14
- Classifier: Operating System :: OS Independent
15
- Classifier: Programming Language :: JavaScript
16
- Classifier: Programming Language :: Python
17
10
  Classifier: Programming Language :: Python :: 3
18
11
  Classifier: Programming Language :: Python :: 3.10
19
12
  Classifier: Programming Language :: Python :: 3.11
20
- Classifier: Topic :: Software Development
21
- Classifier: Topic :: Software Development :: Libraries
22
- Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
23
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
24
- Classifier: Typing :: Typed
13
+ Classifier: Programming Language :: Python :: 3.12
25
14
  Requires-Dist: PyYAML (>=6.0,<7.0)
26
- Requires-Dist: aiohttp (>=3.8.1,<4.0.0)
15
+ Requires-Dist: aiohttp (>=3.9.5,<4.0.0)
27
16
  Requires-Dist: click (>=8.1.3,<9.0.0)
28
17
  Project-URL: Issues, https://github.com/quantmind/aio-kong/issues
29
18
  Project-URL: Repository, https://github.com/quantmind/aio-kong
@@ -38,7 +27,7 @@ Description-Content-Type: text/markdown
38
27
  [![Downloads](https://img.shields.io/pypi/dd/aio-kong.svg)](https://pypi.org/project/aio-kong/)
39
28
 
40
29
 
41
- Tested with [kong][] v3.3
30
+ Tested with [kong][] v3.7
42
31
 
43
32
  ## Installation & Testing
44
33
 
@@ -1,18 +1,18 @@
1
- kong/__init__.py,sha256=M2UuAVGr9PKyw_LuyuKNc-r10DwOh7Kc-BwTbMnP0Xg,54
1
+ kong/__init__.py,sha256=UVmVE0KcZe87hbs1wKv7UzBMypiupOreyU3SU9OGVVo,54
2
2
  kong/auths.py,sha256=QcY6pT_4Jf9R8KNafMoAHNV-ixjew5Nq63dlgo3wadc,2314
3
3
  kong/certificates.py,sha256=MFRmFz7X2oqZN434VD7BzB7ozsUj-HD0Jv5anZZkYHw,278
4
- kong/cli.py,sha256=NiOb4vqAwnrdBDPd9gkeKai38oNRfAE803wQ4ZRca-o,1932
4
+ kong/cli.py,sha256=TbzNWkx1rj2bnfarC28e2tndwwXWoW61ONJPpr5485c,1953
5
5
  kong/client.py,sha256=RP-Hhhtzd16jzRvR4hZQPAmsgse5D7ke5xjfrZOcmGw,3782
6
- kong/components.py,sha256=JrQrxkVSdq7ZsBvb_nG28TMEL8uFpNsdApODRr0T5o4,5342
6
+ kong/components.py,sha256=PPoOopqRtGFtANp0OELowFB7Gm2DdNmkVRVvNcLs6aY,5343
7
7
  kong/consumers.py,sha256=PRIa07WU8xNRfod5XmeK2V_f59wfTlOP6ZK8iR1iAkY,2720
8
8
  kong/plugins.py,sha256=QlxPuWmui64iiauJ-pXTjZd84wrNARe45v1yIMGCPAU,2685
9
9
  kong/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  kong/routes.py,sha256=GkNfaKZDuO9BDDhri3Ah3b2qy_VfAHcAmamRHlbOA0k,1482
11
11
  kong/services.py,sha256=ForaPLtEKyITZb9GqVb-XJUf4iOvKYh26YZSfo1SY6k,2514
12
12
  kong/snis.py,sha256=UfEVp_PAwXYVH9mK-ND7HCtf_H6T9RqUEoHU2sne_bY,665
13
- kong/utils.py,sha256=j3KmyZ4dtszteIl5saaxJa0JJaNTSearIAHOZrw8O7M,931
14
- aio_kong-3.3.2.dist-info/LICENSE,sha256=4S4Rfy2EEQkrBsn1cu8_EZkf2Q8XfOoxjabtI0BOhdQ,1461
15
- aio_kong-3.3.2.dist-info/METADATA,sha256=jaEBX8NjbUhEniriGgc9CONtk1ERyjVmCD1-_j6txuk,3452
16
- aio_kong-3.3.2.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
17
- aio_kong-3.3.2.dist-info/entry_points.txt,sha256=Wp_emFiShNNMtqwMxwwdo7qQDiLMxYqZwk9sP4YbEp4,41
18
- aio_kong-3.3.2.dist-info/RECORD,,
13
+ kong/utils.py,sha256=Uoe5DRclN-t1DX8AvwgidYn8GMMvLUXVjMgzqs6mUAE,932
14
+ aio_kong-3.4.0.dist-info/LICENSE,sha256=4S4Rfy2EEQkrBsn1cu8_EZkf2Q8XfOoxjabtI0BOhdQ,1461
15
+ aio_kong-3.4.0.dist-info/METADATA,sha256=pP4zUi3IXy5d9cZz-KQdI2-crej46Iw4GBjO_GewJTw,2911
16
+ aio_kong-3.4.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
+ aio_kong-3.4.0.dist-info/entry_points.txt,sha256=Wp_emFiShNNMtqwMxwwdo7qQDiLMxYqZwk9sP4YbEp4,41
18
+ aio_kong-3.4.0.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.6.1
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
kong/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Asynchronous Kong client"""
2
2
 
3
- __version__ = "3.3.2"
3
+ __version__ = "3.4.0"
kong/cli.py CHANGED
@@ -1,9 +1,10 @@
1
1
  import asyncio
2
- import click
3
2
  import json
4
- import yaml as _yaml
5
3
  from typing import Any, cast
6
4
 
5
+ import click
6
+ import yaml as _yaml
7
+
7
8
  from . import __version__
8
9
  from .client import Kong, KongError
9
10
  from .consumers import Consumer
@@ -51,7 +52,7 @@ async def _yml(yaml: Any, clear: bool) -> None:
51
52
  result = await cli.apply_json(_yaml.safe_load(yaml), clear=clear)
52
53
  click.echo(json.dumps(result, indent=4))
53
54
  except KongError as exc:
54
- raise click.ClickException(str(exc))
55
+ raise click.ClickException(str(exc)) from None
55
56
 
56
57
 
57
58
  async def _auth_key(consumer: str) -> None:
@@ -65,4 +66,4 @@ async def _auth_key(consumer: str) -> None:
65
66
  key = await c.keyauths.create()
66
67
  click.echo(json.dumps(key.data, indent=4))
67
68
  except KongError as exc:
68
- raise click.ClickException(str(exc))
69
+ raise click.ClickException(str(exc)) from None
kong/components.py CHANGED
@@ -1,9 +1,10 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  import json
4
- from aiohttp import ClientResponse
5
4
  from typing import TYPE_CHECKING, Any, AsyncIterator, Iterator, Mapping
6
5
 
6
+ from aiohttp import ClientResponse
7
+
7
8
  from .utils import UUID, as_dict, as_params, uid
8
9
 
9
10
  if TYPE_CHECKING:
kong/utils.py CHANGED
@@ -1,8 +1,9 @@
1
1
  import socket
2
- from multidict import MultiDict
3
2
  from typing import Any
4
3
  from uuid import UUID
5
4
 
5
+ from multidict import MultiDict
6
+
6
7
 
7
8
  def as_list(key: str, data: dict) -> dict:
8
9
  if key in data: