openapi-python-client 0.28.3__tar.gz → 0.28.4__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.
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/PKG-INFO +2 -2
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/__init__.py +1 -1
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/enum_property.py +3 -1
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/schemas.py +1 -1
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/pyproject_uv.toml.jinja +1 -1
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/pyproject.toml +2 -2
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/.gitignore +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/LICENSE +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/README.md +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/__main__.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/cli.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/config.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/__init__.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/bodies.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/errors.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/openapi.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/__init__.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/any.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/boolean.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/const.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/date.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/datetime.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/file.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/float.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/int.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/list_property.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/literal_enum_property.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/merge_properties.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/model_property.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/none.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/property.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/protocol.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/string.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/union.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/properties/uuid.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/responses.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/py.typed +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/3.0.3.md +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/3.1.0.md +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/__init__.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/data_type.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/LICENSE +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/README.md +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/__init__.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/callback.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/components.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/contact.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/discriminator.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/encoding.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/example.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/header.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/info.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/license.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/link.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/media_type.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/open_api.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/operation.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/parameter.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/path_item.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/paths.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/reference.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/request_body.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/response.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/responses.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/schema.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/security_requirement.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/server.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/server_variable.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/tag.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/openapi_schema_pydantic/xml.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/parameter_location.py +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/.gitignore.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/README.md.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/api_init.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/client.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/endpoint_init.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/endpoint_macros.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/endpoint_module.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/errors.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/helpers.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/int_enum.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/literal_enum.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/model.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/models_init.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/package_init.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/any_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/boolean_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/const_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/date_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/datetime_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/enum_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/file_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/float_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/helpers.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/int_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/list_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/literal_enum_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/model_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/property_macros.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/union_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/property_templates/uuid_property.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/pyproject.toml.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/pyproject_pdm.toml.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/pyproject_poetry.toml.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/pyproject_ruff.toml.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/setup.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/str_enum.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/templates/types.py.jinja +0 -0
- {openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openapi-python-client
|
|
3
|
-
Version: 0.28.
|
|
3
|
+
Version: 0.28.4
|
|
4
4
|
Summary: Generate modern Python clients from OpenAPI
|
|
5
5
|
Project-URL: repository, https://github.com/openapi-generators/openapi-python-client
|
|
6
6
|
Author-email: Dylan Anthony <contact@dylananthony.com>
|
|
@@ -28,7 +28,7 @@ Requires-Dist: python-dateutil<3.0.0,>=2.8.1
|
|
|
28
28
|
Requires-Dist: ruamel-yaml<0.20.0,>=0.18.6
|
|
29
29
|
Requires-Dist: ruff>=0.2
|
|
30
30
|
Requires-Dist: shellingham<2.0.0,>=1.3.2
|
|
31
|
-
Requires-Dist: typer<0.
|
|
31
|
+
Requires-Dist: typer<0.26,>0.16
|
|
32
32
|
Description-Content-Type: text/markdown
|
|
33
33
|
|
|
34
34
|

|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/__init__.py
RENAMED
|
@@ -126,7 +126,7 @@ class Project:
|
|
|
126
126
|
self._run_command(command)
|
|
127
127
|
|
|
128
128
|
def _run_command(self, cmd: str) -> None:
|
|
129
|
-
cmd_name = cmd.split(" ")[0]
|
|
129
|
+
cmd_name = cmd.split(" ", maxsplit=1)[0]
|
|
130
130
|
command_exists = shutil.which(cmd_name)
|
|
131
131
|
if not command_exists:
|
|
132
132
|
self.errors.append(
|
|
@@ -201,7 +201,9 @@ class EnumProperty(PropertyProtocol):
|
|
|
201
201
|
else:
|
|
202
202
|
output[f"VALUE_{value}"] = value
|
|
203
203
|
continue
|
|
204
|
-
if
|
|
204
|
+
if use_var_names:
|
|
205
|
+
key = var_names[i]
|
|
206
|
+
elif value and value[0].isalpha():
|
|
205
207
|
key = value.upper()
|
|
206
208
|
else:
|
|
207
209
|
key = f"VALUE_{i}"
|
|
@@ -50,7 +50,7 @@ def get_reference_simple_name(ref_path: str) -> str:
|
|
|
50
50
|
"""
|
|
51
51
|
Takes a path like `/components/schemas/NameOfThing` and returns a string like `NameOfThing`.
|
|
52
52
|
"""
|
|
53
|
-
return ref_path.
|
|
53
|
+
return ref_path.rsplit("/", maxsplit=1)[-1]
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
@define
|
|
@@ -6,7 +6,7 @@ license = { text = "MIT" }
|
|
|
6
6
|
requires-python = ">=3.10,<4.0"
|
|
7
7
|
dependencies = [
|
|
8
8
|
"jinja2>=3.0.0,<4.0.0",
|
|
9
|
-
"typer>0.16,<0.
|
|
9
|
+
"typer>0.16,<0.26",
|
|
10
10
|
"colorama>=0.4.3; sys_platform == \"win32\"",
|
|
11
11
|
"shellingham>=1.3.2,<2.0.0",
|
|
12
12
|
"pydantic>=2.10,<3.0.0",
|
|
@@ -17,7 +17,7 @@ dependencies = [
|
|
|
17
17
|
"ruff>=0.2",
|
|
18
18
|
]
|
|
19
19
|
name = "openapi-python-client"
|
|
20
|
-
version = "0.28.
|
|
20
|
+
version = "0.28.4"
|
|
21
21
|
description = "Generate modern Python clients from OpenAPI"
|
|
22
22
|
keywords = [
|
|
23
23
|
"OpenAPI",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/config.py
RENAMED
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/bodies.py
RENAMED
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/parser/errors.py
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/py.typed
RENAMED
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/3.0.3.md
RENAMED
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/schema/3.1.0.md
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.28.3 → openapi_python_client-0.28.4}/openapi_python_client/utils.py
RENAMED
|
File without changes
|