openapi-python-client 0.27.0__tar.gz → 0.27.1__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.27.0 → openapi_python_client-0.27.1}/PKG-INFO +1 -1
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/client.py.jinja +2 -2
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/list_property.py.jinja +10 -4
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/union_property.py.jinja +1 -1
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/pyproject_poetry.toml.jinja +1 -1
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/pyproject_uv.toml.jinja +1 -4
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/pyproject.toml +1 -1
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/.gitignore +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/LICENSE +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/README.md +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/__init__.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/__main__.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/cli.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/config.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/__init__.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/bodies.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/errors.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/openapi.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/__init__.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/any.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/boolean.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/const.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/date.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/datetime.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/enum_property.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/file.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/float.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/int.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/list_property.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/literal_enum_property.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/merge_properties.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/model_property.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/none.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/property.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/protocol.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/schemas.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/string.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/union.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/properties/uuid.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/responses.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/py.typed +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/3.0.3.md +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/3.1.0.md +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/__init__.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/data_type.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/LICENSE +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/README.md +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/__init__.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/callback.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/components.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/contact.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/discriminator.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/encoding.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/example.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/external_documentation.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/header.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/info.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/license.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/link.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/media_type.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/oauth_flow.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/oauth_flows.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/open_api.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/operation.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/parameter.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/path_item.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/paths.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/reference.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/request_body.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/response.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/responses.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/schema.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/security_requirement.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/security_scheme.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/server.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/server_variable.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/tag.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/openapi_schema_pydantic/xml.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/parameter_location.py +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/.gitignore.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/README.md.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/api_init.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/endpoint_init.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/endpoint_macros.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/endpoint_module.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/errors.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/helpers.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/int_enum.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/literal_enum.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/model.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/models_init.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/package_init.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/any_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/boolean_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/const_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/date_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/datetime_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/enum_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/file_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/float_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/helpers.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/int_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/literal_enum_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/model_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/property_macros.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/property_templates/uuid_property.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/pyproject.toml.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/pyproject_pdm.toml.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/pyproject_ruff.toml.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/setup.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/str_enum.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/templates/types.py.jinja +0 -0
- {openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/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.27.
|
|
3
|
+
Version: 0.27.1
|
|
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>
|
|
@@ -90,7 +90,7 @@ class Client:
|
|
|
90
90
|
return evolve(self, cookies={**self._cookies, **cookies})
|
|
91
91
|
|
|
92
92
|
def with_timeout(self, timeout: httpx.Timeout) -> "{{ self }}":
|
|
93
|
-
"""Get a new client matching this one with a new timeout
|
|
93
|
+
"""Get a new client matching this one with a new timeout configuration"""
|
|
94
94
|
if self._client is not None:
|
|
95
95
|
self._client.timeout = timeout
|
|
96
96
|
if self._async_client is not None:
|
|
@@ -133,7 +133,7 @@ class Client:
|
|
|
133
133
|
self.get_httpx_client().__exit__(*args, **kwargs)
|
|
134
134
|
|
|
135
135
|
def set_async_httpx_client(self, async_client: httpx.AsyncClient) -> "{{ name }}":
|
|
136
|
-
"""Manually the underlying httpx.AsyncClient
|
|
136
|
+
"""Manually set the underlying httpx.AsyncClient
|
|
137
137
|
|
|
138
138
|
**NOTE**: This will override any other settings on the client, including cookies, headers, and timeout.
|
|
139
139
|
"""
|
|
@@ -3,16 +3,22 @@
|
|
|
3
3
|
{% import "property_templates/" + inner_property.template as inner_template %}
|
|
4
4
|
{% if inner_template.construct %}
|
|
5
5
|
{% set inner_source = inner_property.python_name + "_data" %}
|
|
6
|
+
{% if property.required %}
|
|
6
7
|
{{ property.python_name }} = []
|
|
7
8
|
_{{ property.python_name }} = {{ source }}
|
|
8
|
-
{% if property.required %}
|
|
9
9
|
for {{ inner_source }} in (_{{ property.python_name }}):
|
|
10
|
-
{% else %}
|
|
11
|
-
for {{ inner_source }} in (_{{ property.python_name }} or []):
|
|
12
|
-
{% endif %}
|
|
13
10
|
{{ inner_template.construct(inner_property, inner_source) | indent(4) }}
|
|
14
11
|
{{ property.python_name }}.append({{ inner_property.python_name }})
|
|
15
12
|
{% else %}
|
|
13
|
+
_{{ property.python_name }} = {{ source }}
|
|
14
|
+
{{ property.python_name }}: {{ property.get_type_string() }} = UNSET
|
|
15
|
+
if _{{ property.python_name }} is not UNSET:
|
|
16
|
+
{{ property.python_name }} = []
|
|
17
|
+
for {{ inner_source }} in _{{ property.python_name }}:
|
|
18
|
+
{{ inner_template.construct(inner_property, inner_source) | indent(8) }}
|
|
19
|
+
{{ property.python_name }}.append({{ inner_property.python_name }})
|
|
20
|
+
{% endif %}
|
|
21
|
+
{% else %}
|
|
16
22
|
{{ property.python_name }} = cast({{ property.get_type_string(no_optional=True) }}, {{ source }})
|
|
17
23
|
{% endif %}
|
|
18
24
|
{% endmacro %}
|
|
@@ -21,7 +21,7 @@ def _parse_{{ property.python_name }}(data: object) -> {{ property.get_type_stri
|
|
|
21
21
|
raise TypeError()
|
|
22
22
|
{{ inner_template.construct(inner_property, "data") | indent(8) }}
|
|
23
23
|
return {{ inner_property.python_name }}
|
|
24
|
-
except
|
|
24
|
+
except (TypeError, ValueError, AttributeError, KeyError):
|
|
25
25
|
pass
|
|
26
26
|
{% else %}{# Don't do try/except for the last one nor any properties with no type checking #}
|
|
27
27
|
{% if inner_template.check_type_for_construct %}
|
|
@@ -14,10 +14,7 @@ dependencies = [
|
|
|
14
14
|
[tool.uv.build-backend]
|
|
15
15
|
module-name = "{{ package_name }}"
|
|
16
16
|
module-root = ""
|
|
17
|
-
data = [
|
|
18
|
-
"CHANGELOG.md",
|
|
19
|
-
]
|
|
20
17
|
|
|
21
18
|
[build-system]
|
|
22
|
-
requires = ["uv_build>=0.
|
|
19
|
+
requires = ["uv_build>=0.9.0,<0.10.0"]
|
|
23
20
|
build-backend = "uv_build"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/__init__.py
RENAMED
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/config.py
RENAMED
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/parser/bodies.py
RENAMED
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/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
|
|
File without changes
|
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/py.typed
RENAMED
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/schema/3.0.3.md
RENAMED
|
File without changes
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/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
|
{openapi_python_client-0.27.0 → openapi_python_client-0.27.1}/openapi_python_client/utils.py
RENAMED
|
File without changes
|