policyengine-api-simulation-client 0.20260112.78__py3-none-any.whl → 0.20260114.79__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.
- policyengine_api_simulation_client/__init__.py +1 -1
- policyengine_api_simulation_client/api/default/get_country_versions_versions_country_get.py +172 -0
- policyengine_api_simulation_client/api/default/get_job_status_jobs_job_id_get.py +204 -0
- policyengine_api_simulation_client/api/default/{started_ping_started_get.py → health_health_get.py} +27 -21
- policyengine_api_simulation_client/api/default/{alive_ping_alive_get.py → list_versions_versions_get.py} +27 -29
- policyengine_api_simulation_client/api/default/ping_ping_post.py +8 -8
- policyengine_api_simulation_client/api/default/{simulate_simulate_economy_comparison_post.py → submit_simulation_simulate_economy_comparison_post.py} +51 -27
- policyengine_api_simulation_client/models/__init__.py +17 -103
- policyengine_api_simulation_client/models/{baseline_reform_values.py → get_country_versions_versions_country_get_response_get_country_versions_versions_country_get.py} +6 -29
- policyengine_api_simulation_client/models/{labor_supply_response_relative_lsr.py → health_health_get_response_health_health_get.py} +5 -5
- policyengine_api_simulation_client/models/job_status_response.py +122 -0
- policyengine_api_simulation_client/models/{simulation_options_data_type_1.py → job_status_response_result_type_0.py} +5 -5
- policyengine_api_simulation_client/models/{program_specific_impact.py → job_submit_response.py} +41 -24
- policyengine_api_simulation_client/models/{parameter_change_dict.py → list_versions_versions_get_response_list_versions_versions_get.py} +6 -13
- policyengine_api_simulation_client/models/ping_request.py +2 -1
- policyengine_api_simulation_client/models/ping_response.py +2 -1
- policyengine_api_simulation_client/models/{probe_status.py → simulation_request.py} +24 -31
- {policyengine_api_simulation_client-0.20260112.78.dist-info → policyengine_api_simulation_client-0.20260114.79.dist-info}/METADATA +4 -4
- policyengine_api_simulation_client-0.20260114.79.dist-info/RECORD +28 -0
- policyengine_api_simulation_client/models/age_group_baseline_reform_values.py +0 -91
- policyengine_api_simulation_client/models/budgetary_impact.py +0 -101
- policyengine_api_simulation_client/models/cliff_impact.py +0 -75
- policyengine_api_simulation_client/models/cliff_impact_in_simulation.py +0 -69
- policyengine_api_simulation_client/models/decile_impact.py +0 -77
- policyengine_api_simulation_client/models/decile_impact_average.py +0 -46
- policyengine_api_simulation_client/models/decile_impact_relative.py +0 -46
- policyengine_api_simulation_client/models/economy_comparison.py +0 -366
- policyengine_api_simulation_client/models/economy_comparison_detailed_budget_type_0.py +0 -59
- policyengine_api_simulation_client/models/gender_baseline_reform_values.py +0 -75
- policyengine_api_simulation_client/models/health_status.py +0 -83
- policyengine_api_simulation_client/models/hours_response.py +0 -93
- policyengine_api_simulation_client/models/inequality_impact.py +0 -83
- policyengine_api_simulation_client/models/intra_decile_impact.py +0 -77
- policyengine_api_simulation_client/models/intra_decile_impact_all.py +0 -46
- policyengine_api_simulation_client/models/intra_decile_impact_deciles.py +0 -53
- policyengine_api_simulation_client/models/intra_wealth_decile_impact_with_values.py +0 -77
- policyengine_api_simulation_client/models/intra_wealth_decile_impact_with_values_all.py +0 -46
- policyengine_api_simulation_client/models/intra_wealth_decile_impact_with_values_deciles.py +0 -53
- policyengine_api_simulation_client/models/labor_supply_response.py +0 -119
- policyengine_api_simulation_client/models/labor_supply_response_decile.py +0 -63
- policyengine_api_simulation_client/models/labor_supply_response_decile_additional_property.py +0 -65
- policyengine_api_simulation_client/models/labor_supply_response_decile_additional_property_additional_property.py +0 -46
- policyengine_api_simulation_client/models/parametric_reform.py +0 -80
- policyengine_api_simulation_client/models/poverty_gender_breakdown.py +0 -75
- policyengine_api_simulation_client/models/poverty_impact.py +0 -75
- policyengine_api_simulation_client/models/poverty_racial_breakdown_with_values.py +0 -67
- policyengine_api_simulation_client/models/racial_baseline_reform_values.py +0 -91
- policyengine_api_simulation_client/models/simulation_options.py +0 -309
- policyengine_api_simulation_client/models/simulation_options_country.py +0 -9
- policyengine_api_simulation_client/models/simulation_options_scope.py +0 -9
- policyengine_api_simulation_client/models/system_status.py +0 -91
- policyengine_api_simulation_client/models/uk_constituency_breakdown_by_constituency.py +0 -85
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values.py +0 -85
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values_by_constituency.py +0 -59
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values_outcomes_by_region.py +0 -67
- policyengine_api_simulation_client/models/uk_constituency_breakdown_with_values_outcomes_by_region_additional_property.py +0 -46
- policyengine_api_simulation_client/models/uk_local_authority_breakdown_by_local_authority.py +0 -85
- policyengine_api_simulation_client/models/uk_local_authority_breakdown_with_values.py +0 -71
- policyengine_api_simulation_client/models/uk_local_authority_breakdown_with_values_by_local_authority.py +0 -59
- policyengine_api_simulation_client/models/wealth_decile_impact_with_values.py +0 -77
- policyengine_api_simulation_client/models/wealth_decile_impact_with_values_average.py +0 -46
- policyengine_api_simulation_client/models/wealth_decile_impact_with_values_relative.py +0 -46
- policyengine_api_simulation_client-0.20260112.78.dist-info/RECORD +0 -68
- {policyengine_api_simulation_client-0.20260112.78.dist-info → policyengine_api_simulation_client-0.20260114.79.dist-info}/WHEEL +0 -0
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.hours_response import HoursResponse
|
|
11
|
-
from ..models.labor_supply_response_decile import LaborSupplyResponseDecile
|
|
12
|
-
from ..models.labor_supply_response_relative_lsr import LaborSupplyResponseRelativeLsr
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
T = TypeVar("T", bound="LaborSupplyResponse")
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@_attrs_define
|
|
19
|
-
class LaborSupplyResponse:
|
|
20
|
-
"""
|
|
21
|
-
Attributes:
|
|
22
|
-
substitution_lsr (float):
|
|
23
|
-
income_lsr (float):
|
|
24
|
-
relative_lsr (LaborSupplyResponseRelativeLsr):
|
|
25
|
-
total_change (float):
|
|
26
|
-
revenue_change (float):
|
|
27
|
-
decile (LaborSupplyResponseDecile):
|
|
28
|
-
hours (HoursResponse):
|
|
29
|
-
"""
|
|
30
|
-
|
|
31
|
-
substitution_lsr: float
|
|
32
|
-
income_lsr: float
|
|
33
|
-
relative_lsr: LaborSupplyResponseRelativeLsr
|
|
34
|
-
total_change: float
|
|
35
|
-
revenue_change: float
|
|
36
|
-
decile: LaborSupplyResponseDecile
|
|
37
|
-
hours: HoursResponse
|
|
38
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
39
|
-
|
|
40
|
-
def to_dict(self) -> dict[str, Any]:
|
|
41
|
-
substitution_lsr = self.substitution_lsr
|
|
42
|
-
|
|
43
|
-
income_lsr = self.income_lsr
|
|
44
|
-
|
|
45
|
-
relative_lsr = self.relative_lsr.to_dict()
|
|
46
|
-
|
|
47
|
-
total_change = self.total_change
|
|
48
|
-
|
|
49
|
-
revenue_change = self.revenue_change
|
|
50
|
-
|
|
51
|
-
decile = self.decile.to_dict()
|
|
52
|
-
|
|
53
|
-
hours = self.hours.to_dict()
|
|
54
|
-
|
|
55
|
-
field_dict: dict[str, Any] = {}
|
|
56
|
-
field_dict.update(self.additional_properties)
|
|
57
|
-
field_dict.update(
|
|
58
|
-
{
|
|
59
|
-
"substitution_lsr": substitution_lsr,
|
|
60
|
-
"income_lsr": income_lsr,
|
|
61
|
-
"relative_lsr": relative_lsr,
|
|
62
|
-
"total_change": total_change,
|
|
63
|
-
"revenue_change": revenue_change,
|
|
64
|
-
"decile": decile,
|
|
65
|
-
"hours": hours,
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
|
|
69
|
-
return field_dict
|
|
70
|
-
|
|
71
|
-
@classmethod
|
|
72
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
73
|
-
from ..models.hours_response import HoursResponse
|
|
74
|
-
from ..models.labor_supply_response_decile import LaborSupplyResponseDecile
|
|
75
|
-
from ..models.labor_supply_response_relative_lsr import LaborSupplyResponseRelativeLsr
|
|
76
|
-
|
|
77
|
-
d = dict(src_dict)
|
|
78
|
-
substitution_lsr = d.pop("substitution_lsr")
|
|
79
|
-
|
|
80
|
-
income_lsr = d.pop("income_lsr")
|
|
81
|
-
|
|
82
|
-
relative_lsr = LaborSupplyResponseRelativeLsr.from_dict(d.pop("relative_lsr"))
|
|
83
|
-
|
|
84
|
-
total_change = d.pop("total_change")
|
|
85
|
-
|
|
86
|
-
revenue_change = d.pop("revenue_change")
|
|
87
|
-
|
|
88
|
-
decile = LaborSupplyResponseDecile.from_dict(d.pop("decile"))
|
|
89
|
-
|
|
90
|
-
hours = HoursResponse.from_dict(d.pop("hours"))
|
|
91
|
-
|
|
92
|
-
labor_supply_response = cls(
|
|
93
|
-
substitution_lsr=substitution_lsr,
|
|
94
|
-
income_lsr=income_lsr,
|
|
95
|
-
relative_lsr=relative_lsr,
|
|
96
|
-
total_change=total_change,
|
|
97
|
-
revenue_change=revenue_change,
|
|
98
|
-
decile=decile,
|
|
99
|
-
hours=hours,
|
|
100
|
-
)
|
|
101
|
-
|
|
102
|
-
labor_supply_response.additional_properties = d
|
|
103
|
-
return labor_supply_response
|
|
104
|
-
|
|
105
|
-
@property
|
|
106
|
-
def additional_keys(self) -> list[str]:
|
|
107
|
-
return list(self.additional_properties.keys())
|
|
108
|
-
|
|
109
|
-
def __getitem__(self, key: str) -> Any:
|
|
110
|
-
return self.additional_properties[key]
|
|
111
|
-
|
|
112
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
113
|
-
self.additional_properties[key] = value
|
|
114
|
-
|
|
115
|
-
def __delitem__(self, key: str) -> None:
|
|
116
|
-
del self.additional_properties[key]
|
|
117
|
-
|
|
118
|
-
def __contains__(self, key: str) -> bool:
|
|
119
|
-
return key in self.additional_properties
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.labor_supply_response_decile_additional_property import LaborSupplyResponseDecileAdditionalProperty
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="LaborSupplyResponseDecile")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class LaborSupplyResponseDecile:
|
|
18
|
-
""" """
|
|
19
|
-
|
|
20
|
-
additional_properties: dict[str, LaborSupplyResponseDecileAdditionalProperty] = _attrs_field(
|
|
21
|
-
init=False, factory=dict
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
def to_dict(self) -> dict[str, Any]:
|
|
25
|
-
field_dict: dict[str, Any] = {}
|
|
26
|
-
for prop_name, prop in self.additional_properties.items():
|
|
27
|
-
field_dict[prop_name] = prop.to_dict()
|
|
28
|
-
|
|
29
|
-
return field_dict
|
|
30
|
-
|
|
31
|
-
@classmethod
|
|
32
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
33
|
-
from ..models.labor_supply_response_decile_additional_property import (
|
|
34
|
-
LaborSupplyResponseDecileAdditionalProperty,
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
d = dict(src_dict)
|
|
38
|
-
labor_supply_response_decile = cls()
|
|
39
|
-
|
|
40
|
-
additional_properties = {}
|
|
41
|
-
for prop_name, prop_dict in d.items():
|
|
42
|
-
additional_property = LaborSupplyResponseDecileAdditionalProperty.from_dict(prop_dict)
|
|
43
|
-
|
|
44
|
-
additional_properties[prop_name] = additional_property
|
|
45
|
-
|
|
46
|
-
labor_supply_response_decile.additional_properties = additional_properties
|
|
47
|
-
return labor_supply_response_decile
|
|
48
|
-
|
|
49
|
-
@property
|
|
50
|
-
def additional_keys(self) -> list[str]:
|
|
51
|
-
return list(self.additional_properties.keys())
|
|
52
|
-
|
|
53
|
-
def __getitem__(self, key: str) -> LaborSupplyResponseDecileAdditionalProperty:
|
|
54
|
-
return self.additional_properties[key]
|
|
55
|
-
|
|
56
|
-
def __setitem__(self, key: str, value: LaborSupplyResponseDecileAdditionalProperty) -> None:
|
|
57
|
-
self.additional_properties[key] = value
|
|
58
|
-
|
|
59
|
-
def __delitem__(self, key: str) -> None:
|
|
60
|
-
del self.additional_properties[key]
|
|
61
|
-
|
|
62
|
-
def __contains__(self, key: str) -> bool:
|
|
63
|
-
return key in self.additional_properties
|
policyengine_api_simulation_client/models/labor_supply_response_decile_additional_property.py
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.labor_supply_response_decile_additional_property_additional_property import (
|
|
11
|
-
LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty,
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
T = TypeVar("T", bound="LaborSupplyResponseDecileAdditionalProperty")
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@_attrs_define
|
|
19
|
-
class LaborSupplyResponseDecileAdditionalProperty:
|
|
20
|
-
""" """
|
|
21
|
-
|
|
22
|
-
additional_properties: dict[str, LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty] = _attrs_field(
|
|
23
|
-
init=False, factory=dict
|
|
24
|
-
)
|
|
25
|
-
|
|
26
|
-
def to_dict(self) -> dict[str, Any]:
|
|
27
|
-
field_dict: dict[str, Any] = {}
|
|
28
|
-
for prop_name, prop in self.additional_properties.items():
|
|
29
|
-
field_dict[prop_name] = prop.to_dict()
|
|
30
|
-
|
|
31
|
-
return field_dict
|
|
32
|
-
|
|
33
|
-
@classmethod
|
|
34
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
35
|
-
from ..models.labor_supply_response_decile_additional_property_additional_property import (
|
|
36
|
-
LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty,
|
|
37
|
-
)
|
|
38
|
-
|
|
39
|
-
d = dict(src_dict)
|
|
40
|
-
labor_supply_response_decile_additional_property = cls()
|
|
41
|
-
|
|
42
|
-
additional_properties = {}
|
|
43
|
-
for prop_name, prop_dict in d.items():
|
|
44
|
-
additional_property = LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty.from_dict(prop_dict)
|
|
45
|
-
|
|
46
|
-
additional_properties[prop_name] = additional_property
|
|
47
|
-
|
|
48
|
-
labor_supply_response_decile_additional_property.additional_properties = additional_properties
|
|
49
|
-
return labor_supply_response_decile_additional_property
|
|
50
|
-
|
|
51
|
-
@property
|
|
52
|
-
def additional_keys(self) -> list[str]:
|
|
53
|
-
return list(self.additional_properties.keys())
|
|
54
|
-
|
|
55
|
-
def __getitem__(self, key: str) -> LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty:
|
|
56
|
-
return self.additional_properties[key]
|
|
57
|
-
|
|
58
|
-
def __setitem__(self, key: str, value: LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty) -> None:
|
|
59
|
-
self.additional_properties[key] = value
|
|
60
|
-
|
|
61
|
-
def __delitem__(self, key: str) -> None:
|
|
62
|
-
del self.additional_properties[key]
|
|
63
|
-
|
|
64
|
-
def __contains__(self, key: str) -> bool:
|
|
65
|
-
return key in self.additional_properties
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
T = TypeVar("T", bound="LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty")
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@_attrs_define
|
|
13
|
-
class LaborSupplyResponseDecileAdditionalPropertyAdditionalProperty:
|
|
14
|
-
""" """
|
|
15
|
-
|
|
16
|
-
additional_properties: dict[str, float] = _attrs_field(init=False, factory=dict)
|
|
17
|
-
|
|
18
|
-
def to_dict(self) -> dict[str, Any]:
|
|
19
|
-
field_dict: dict[str, Any] = {}
|
|
20
|
-
field_dict.update(self.additional_properties)
|
|
21
|
-
|
|
22
|
-
return field_dict
|
|
23
|
-
|
|
24
|
-
@classmethod
|
|
25
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
26
|
-
d = dict(src_dict)
|
|
27
|
-
labor_supply_response_decile_additional_property_additional_property = cls()
|
|
28
|
-
|
|
29
|
-
labor_supply_response_decile_additional_property_additional_property.additional_properties = d
|
|
30
|
-
return labor_supply_response_decile_additional_property_additional_property
|
|
31
|
-
|
|
32
|
-
@property
|
|
33
|
-
def additional_keys(self) -> list[str]:
|
|
34
|
-
return list(self.additional_properties.keys())
|
|
35
|
-
|
|
36
|
-
def __getitem__(self, key: str) -> float:
|
|
37
|
-
return self.additional_properties[key]
|
|
38
|
-
|
|
39
|
-
def __setitem__(self, key: str, value: float) -> None:
|
|
40
|
-
self.additional_properties[key] = value
|
|
41
|
-
|
|
42
|
-
def __delitem__(self, key: str) -> None:
|
|
43
|
-
del self.additional_properties[key]
|
|
44
|
-
|
|
45
|
-
def __contains__(self, key: str) -> bool:
|
|
46
|
-
return key in self.additional_properties
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.parameter_change_dict import ParameterChangeDict
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="ParametricReform")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class ParametricReform:
|
|
18
|
-
"""A reform that just changes parameter values.
|
|
19
|
-
|
|
20
|
-
This is a dict that equates a parameter name to either a single value or a dict of changes.
|
|
21
|
-
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
additional_properties: dict[str, Any | ParameterChangeDict] = _attrs_field(init=False, factory=dict)
|
|
25
|
-
|
|
26
|
-
def to_dict(self) -> dict[str, Any]:
|
|
27
|
-
from ..models.parameter_change_dict import ParameterChangeDict
|
|
28
|
-
|
|
29
|
-
field_dict: dict[str, Any] = {}
|
|
30
|
-
for prop_name, prop in self.additional_properties.items():
|
|
31
|
-
if isinstance(prop, ParameterChangeDict):
|
|
32
|
-
field_dict[prop_name] = prop.to_dict()
|
|
33
|
-
else:
|
|
34
|
-
field_dict[prop_name] = prop
|
|
35
|
-
|
|
36
|
-
return field_dict
|
|
37
|
-
|
|
38
|
-
@classmethod
|
|
39
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
40
|
-
from ..models.parameter_change_dict import ParameterChangeDict
|
|
41
|
-
|
|
42
|
-
d = dict(src_dict)
|
|
43
|
-
parametric_reform = cls()
|
|
44
|
-
|
|
45
|
-
additional_properties = {}
|
|
46
|
-
for prop_name, prop_dict in d.items():
|
|
47
|
-
|
|
48
|
-
def _parse_additional_property(data: object) -> Any | ParameterChangeDict:
|
|
49
|
-
try:
|
|
50
|
-
if not isinstance(data, dict):
|
|
51
|
-
raise TypeError()
|
|
52
|
-
additional_property_type_1 = ParameterChangeDict.from_dict(data)
|
|
53
|
-
|
|
54
|
-
return additional_property_type_1
|
|
55
|
-
except (TypeError, ValueError, AttributeError, KeyError):
|
|
56
|
-
pass
|
|
57
|
-
return cast(Any | ParameterChangeDict, data)
|
|
58
|
-
|
|
59
|
-
additional_property = _parse_additional_property(prop_dict)
|
|
60
|
-
|
|
61
|
-
additional_properties[prop_name] = additional_property
|
|
62
|
-
|
|
63
|
-
parametric_reform.additional_properties = additional_properties
|
|
64
|
-
return parametric_reform
|
|
65
|
-
|
|
66
|
-
@property
|
|
67
|
-
def additional_keys(self) -> list[str]:
|
|
68
|
-
return list(self.additional_properties.keys())
|
|
69
|
-
|
|
70
|
-
def __getitem__(self, key: str) -> Any | ParameterChangeDict:
|
|
71
|
-
return self.additional_properties[key]
|
|
72
|
-
|
|
73
|
-
def __setitem__(self, key: str, value: Any | ParameterChangeDict) -> None:
|
|
74
|
-
self.additional_properties[key] = value
|
|
75
|
-
|
|
76
|
-
def __delitem__(self, key: str) -> None:
|
|
77
|
-
del self.additional_properties[key]
|
|
78
|
-
|
|
79
|
-
def __contains__(self, key: str) -> bool:
|
|
80
|
-
return key in self.additional_properties
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.gender_baseline_reform_values import GenderBaselineReformValues
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="PovertyGenderBreakdown")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class PovertyGenderBreakdown:
|
|
18
|
-
"""
|
|
19
|
-
Attributes:
|
|
20
|
-
poverty (GenderBaselineReformValues):
|
|
21
|
-
deep_poverty (GenderBaselineReformValues):
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
poverty: GenderBaselineReformValues
|
|
25
|
-
deep_poverty: GenderBaselineReformValues
|
|
26
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
|
-
|
|
28
|
-
def to_dict(self) -> dict[str, Any]:
|
|
29
|
-
poverty = self.poverty.to_dict()
|
|
30
|
-
|
|
31
|
-
deep_poverty = self.deep_poverty.to_dict()
|
|
32
|
-
|
|
33
|
-
field_dict: dict[str, Any] = {}
|
|
34
|
-
field_dict.update(self.additional_properties)
|
|
35
|
-
field_dict.update(
|
|
36
|
-
{
|
|
37
|
-
"poverty": poverty,
|
|
38
|
-
"deep_poverty": deep_poverty,
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
return field_dict
|
|
43
|
-
|
|
44
|
-
@classmethod
|
|
45
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
46
|
-
from ..models.gender_baseline_reform_values import GenderBaselineReformValues
|
|
47
|
-
|
|
48
|
-
d = dict(src_dict)
|
|
49
|
-
poverty = GenderBaselineReformValues.from_dict(d.pop("poverty"))
|
|
50
|
-
|
|
51
|
-
deep_poverty = GenderBaselineReformValues.from_dict(d.pop("deep_poverty"))
|
|
52
|
-
|
|
53
|
-
poverty_gender_breakdown = cls(
|
|
54
|
-
poverty=poverty,
|
|
55
|
-
deep_poverty=deep_poverty,
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
poverty_gender_breakdown.additional_properties = d
|
|
59
|
-
return poverty_gender_breakdown
|
|
60
|
-
|
|
61
|
-
@property
|
|
62
|
-
def additional_keys(self) -> list[str]:
|
|
63
|
-
return list(self.additional_properties.keys())
|
|
64
|
-
|
|
65
|
-
def __getitem__(self, key: str) -> Any:
|
|
66
|
-
return self.additional_properties[key]
|
|
67
|
-
|
|
68
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
-
self.additional_properties[key] = value
|
|
70
|
-
|
|
71
|
-
def __delitem__(self, key: str) -> None:
|
|
72
|
-
del self.additional_properties[key]
|
|
73
|
-
|
|
74
|
-
def __contains__(self, key: str) -> bool:
|
|
75
|
-
return key in self.additional_properties
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.age_group_baseline_reform_values import AgeGroupBaselineReformValues
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="PovertyImpact")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class PovertyImpact:
|
|
18
|
-
"""
|
|
19
|
-
Attributes:
|
|
20
|
-
poverty (AgeGroupBaselineReformValues):
|
|
21
|
-
deep_poverty (AgeGroupBaselineReformValues):
|
|
22
|
-
"""
|
|
23
|
-
|
|
24
|
-
poverty: AgeGroupBaselineReformValues
|
|
25
|
-
deep_poverty: AgeGroupBaselineReformValues
|
|
26
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
|
-
|
|
28
|
-
def to_dict(self) -> dict[str, Any]:
|
|
29
|
-
poverty = self.poverty.to_dict()
|
|
30
|
-
|
|
31
|
-
deep_poverty = self.deep_poverty.to_dict()
|
|
32
|
-
|
|
33
|
-
field_dict: dict[str, Any] = {}
|
|
34
|
-
field_dict.update(self.additional_properties)
|
|
35
|
-
field_dict.update(
|
|
36
|
-
{
|
|
37
|
-
"poverty": poverty,
|
|
38
|
-
"deep_poverty": deep_poverty,
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
return field_dict
|
|
43
|
-
|
|
44
|
-
@classmethod
|
|
45
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
46
|
-
from ..models.age_group_baseline_reform_values import AgeGroupBaselineReformValues
|
|
47
|
-
|
|
48
|
-
d = dict(src_dict)
|
|
49
|
-
poverty = AgeGroupBaselineReformValues.from_dict(d.pop("poverty"))
|
|
50
|
-
|
|
51
|
-
deep_poverty = AgeGroupBaselineReformValues.from_dict(d.pop("deep_poverty"))
|
|
52
|
-
|
|
53
|
-
poverty_impact = cls(
|
|
54
|
-
poverty=poverty,
|
|
55
|
-
deep_poverty=deep_poverty,
|
|
56
|
-
)
|
|
57
|
-
|
|
58
|
-
poverty_impact.additional_properties = d
|
|
59
|
-
return poverty_impact
|
|
60
|
-
|
|
61
|
-
@property
|
|
62
|
-
def additional_keys(self) -> list[str]:
|
|
63
|
-
return list(self.additional_properties.keys())
|
|
64
|
-
|
|
65
|
-
def __getitem__(self, key: str) -> Any:
|
|
66
|
-
return self.additional_properties[key]
|
|
67
|
-
|
|
68
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
-
self.additional_properties[key] = value
|
|
70
|
-
|
|
71
|
-
def __delitem__(self, key: str) -> None:
|
|
72
|
-
del self.additional_properties[key]
|
|
73
|
-
|
|
74
|
-
def __contains__(self, key: str) -> bool:
|
|
75
|
-
return key in self.additional_properties
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.racial_baseline_reform_values import RacialBaselineReformValues
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="PovertyRacialBreakdownWithValues")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class PovertyRacialBreakdownWithValues:
|
|
18
|
-
"""
|
|
19
|
-
Attributes:
|
|
20
|
-
poverty (RacialBaselineReformValues):
|
|
21
|
-
"""
|
|
22
|
-
|
|
23
|
-
poverty: RacialBaselineReformValues
|
|
24
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
25
|
-
|
|
26
|
-
def to_dict(self) -> dict[str, Any]:
|
|
27
|
-
poverty = self.poverty.to_dict()
|
|
28
|
-
|
|
29
|
-
field_dict: dict[str, Any] = {}
|
|
30
|
-
field_dict.update(self.additional_properties)
|
|
31
|
-
field_dict.update(
|
|
32
|
-
{
|
|
33
|
-
"poverty": poverty,
|
|
34
|
-
}
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
return field_dict
|
|
38
|
-
|
|
39
|
-
@classmethod
|
|
40
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
41
|
-
from ..models.racial_baseline_reform_values import RacialBaselineReformValues
|
|
42
|
-
|
|
43
|
-
d = dict(src_dict)
|
|
44
|
-
poverty = RacialBaselineReformValues.from_dict(d.pop("poverty"))
|
|
45
|
-
|
|
46
|
-
poverty_racial_breakdown_with_values = cls(
|
|
47
|
-
poverty=poverty,
|
|
48
|
-
)
|
|
49
|
-
|
|
50
|
-
poverty_racial_breakdown_with_values.additional_properties = d
|
|
51
|
-
return poverty_racial_breakdown_with_values
|
|
52
|
-
|
|
53
|
-
@property
|
|
54
|
-
def additional_keys(self) -> list[str]:
|
|
55
|
-
return list(self.additional_properties.keys())
|
|
56
|
-
|
|
57
|
-
def __getitem__(self, key: str) -> Any:
|
|
58
|
-
return self.additional_properties[key]
|
|
59
|
-
|
|
60
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
61
|
-
self.additional_properties[key] = value
|
|
62
|
-
|
|
63
|
-
def __delitem__(self, key: str) -> None:
|
|
64
|
-
del self.additional_properties[key]
|
|
65
|
-
|
|
66
|
-
def __contains__(self, key: str) -> bool:
|
|
67
|
-
return key in self.additional_properties
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
from __future__ import annotations
|
|
2
|
-
|
|
3
|
-
from collections.abc import Mapping
|
|
4
|
-
from typing import TYPE_CHECKING, Any, TypeVar
|
|
5
|
-
|
|
6
|
-
from attrs import define as _attrs_define
|
|
7
|
-
from attrs import field as _attrs_field
|
|
8
|
-
|
|
9
|
-
if TYPE_CHECKING:
|
|
10
|
-
from ..models.baseline_reform_values import BaselineReformValues
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
T = TypeVar("T", bound="RacialBaselineReformValues")
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@_attrs_define
|
|
17
|
-
class RacialBaselineReformValues:
|
|
18
|
-
"""
|
|
19
|
-
Attributes:
|
|
20
|
-
white (BaselineReformValues):
|
|
21
|
-
black (BaselineReformValues):
|
|
22
|
-
hispanic (BaselineReformValues):
|
|
23
|
-
other (BaselineReformValues):
|
|
24
|
-
"""
|
|
25
|
-
|
|
26
|
-
white: BaselineReformValues
|
|
27
|
-
black: BaselineReformValues
|
|
28
|
-
hispanic: BaselineReformValues
|
|
29
|
-
other: BaselineReformValues
|
|
30
|
-
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
|
-
|
|
32
|
-
def to_dict(self) -> dict[str, Any]:
|
|
33
|
-
white = self.white.to_dict()
|
|
34
|
-
|
|
35
|
-
black = self.black.to_dict()
|
|
36
|
-
|
|
37
|
-
hispanic = self.hispanic.to_dict()
|
|
38
|
-
|
|
39
|
-
other = self.other.to_dict()
|
|
40
|
-
|
|
41
|
-
field_dict: dict[str, Any] = {}
|
|
42
|
-
field_dict.update(self.additional_properties)
|
|
43
|
-
field_dict.update(
|
|
44
|
-
{
|
|
45
|
-
"white": white,
|
|
46
|
-
"black": black,
|
|
47
|
-
"hispanic": hispanic,
|
|
48
|
-
"other": other,
|
|
49
|
-
}
|
|
50
|
-
)
|
|
51
|
-
|
|
52
|
-
return field_dict
|
|
53
|
-
|
|
54
|
-
@classmethod
|
|
55
|
-
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
56
|
-
from ..models.baseline_reform_values import BaselineReformValues
|
|
57
|
-
|
|
58
|
-
d = dict(src_dict)
|
|
59
|
-
white = BaselineReformValues.from_dict(d.pop("white"))
|
|
60
|
-
|
|
61
|
-
black = BaselineReformValues.from_dict(d.pop("black"))
|
|
62
|
-
|
|
63
|
-
hispanic = BaselineReformValues.from_dict(d.pop("hispanic"))
|
|
64
|
-
|
|
65
|
-
other = BaselineReformValues.from_dict(d.pop("other"))
|
|
66
|
-
|
|
67
|
-
racial_baseline_reform_values = cls(
|
|
68
|
-
white=white,
|
|
69
|
-
black=black,
|
|
70
|
-
hispanic=hispanic,
|
|
71
|
-
other=other,
|
|
72
|
-
)
|
|
73
|
-
|
|
74
|
-
racial_baseline_reform_values.additional_properties = d
|
|
75
|
-
return racial_baseline_reform_values
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def additional_keys(self) -> list[str]:
|
|
79
|
-
return list(self.additional_properties.keys())
|
|
80
|
-
|
|
81
|
-
def __getitem__(self, key: str) -> Any:
|
|
82
|
-
return self.additional_properties[key]
|
|
83
|
-
|
|
84
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
85
|
-
self.additional_properties[key] = value
|
|
86
|
-
|
|
87
|
-
def __delitem__(self, key: str) -> None:
|
|
88
|
-
del self.additional_properties[key]
|
|
89
|
-
|
|
90
|
-
def __contains__(self, key: str) -> bool:
|
|
91
|
-
return key in self.additional_properties
|