aio-kong 3.3.2__tar.gz → 3.4.0__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.
@@ -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,3 +1,3 @@
1
1
  """Asynchronous Kong client"""
2
2
 
3
- __version__ = "3.3.2"
3
+ __version__ = "3.4.0"
@@ -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
@@ -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:
@@ -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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "aio-kong"
3
- version = "3.3.2"
3
+ version = "3.4.0"
4
4
  description = "Asynchronous Kong Client"
5
5
  authors = ["Luca <luca@quantmind.com>"]
6
6
  license = "BSD-3-Clause"
@@ -8,24 +8,6 @@ readme = "readme.md"
8
8
  packages = [
9
9
  {include = "kong"}
10
10
  ]
11
- classifiers = [
12
- "Development Status :: 5 - Production/Stable",
13
- "Intended Audience :: Developers",
14
- "License :: OSI Approved :: BSD License",
15
- "Operating System :: OS Independent",
16
- "Programming Language :: JavaScript",
17
- "Programming Language :: Python",
18
- "Programming Language :: Python :: 3",
19
- "Programming Language :: Python :: 3.10",
20
- "Programming Language :: Python :: 3.11",
21
- "Topic :: Software Development :: Libraries :: Application Frameworks",
22
- "Topic :: Software Development :: Libraries :: Python Modules",
23
- "Topic :: Software Development :: Libraries",
24
- "Topic :: Software Development",
25
- "Typing :: Typed",
26
- "Framework :: AsyncIO",
27
- "Environment :: Web Environment",
28
- ]
29
11
 
30
12
  [tool.poetry.urls]
31
13
  "Repository" = "https://github.com/quantmind/aio-kong"
@@ -33,20 +15,20 @@ classifiers = [
33
15
 
34
16
  [tool.poetry.dependencies]
35
17
  python = ">=3.10,<4.0"
36
- aiohttp = "^3.8.1"
18
+ aiohttp = "^3.9.5"
37
19
  click = "^8.1.3"
38
20
  PyYAML = "^6.0"
39
21
 
40
22
  [tool.poetry.group.dev.dependencies]
41
- black = "^23.3.0"
23
+ black = "^24.4.2"
42
24
  isort = "^5.10.1"
43
25
  mypy = "^1.4.0"
44
- pytest = "^7.1.2"
45
- pytest-cov = "^4.0.0"
26
+ pytest = "^8.2.2"
27
+ pytest-cov = "^5.0.0"
46
28
  python-dotenv = "^1.0.0"
47
- pytest-asyncio = "^0.21.0"
29
+ pytest-asyncio = "^0.23.7"
48
30
  types-PyYAML = "^6.0.11"
49
- ruff = "^0.0.274"
31
+ ruff = "^0.4.9"
50
32
 
51
33
  [build-system]
52
34
  requires = ["poetry-core>=1.0.0"]
@@ -67,7 +49,7 @@ testpaths = [
67
49
  profile = "black"
68
50
 
69
51
  [tool.ruff]
70
- select = ["E", "F"]
52
+ lint.select = ["A", "E", "W", "F", "I", "B", "N"]
71
53
  line-length = 88
72
54
 
73
55
  [tool.mypy]
@@ -7,7 +7,7 @@
7
7
  [![Downloads](https://img.shields.io/pypi/dd/aio-kong.svg)](https://pypi.org/project/aio-kong/)
8
8
 
9
9
 
10
- Tested with [kong][] v3.3
10
+ Tested with [kong][] v3.7
11
11
 
12
12
  ## Installation & Testing
13
13
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes