openepd 2.0.0__py3-none-any.whl → 3.1.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.
Files changed (95) hide show
  1. openepd/__init__.py +1 -1
  2. openepd/__version__.py +2 -2
  3. openepd/api/__init__.py +19 -0
  4. openepd/api/base_sync_client.py +550 -0
  5. openepd/api/category/__init__.py +19 -0
  6. openepd/api/category/dto.py +25 -0
  7. openepd/api/category/sync_api.py +44 -0
  8. openepd/api/common.py +239 -0
  9. openepd/api/dto/__init__.py +19 -0
  10. openepd/api/dto/base.py +41 -0
  11. openepd/api/dto/common.py +115 -0
  12. openepd/api/dto/meta.py +69 -0
  13. openepd/api/dto/mf.py +59 -0
  14. openepd/api/dto/params.py +19 -0
  15. openepd/api/epd/__init__.py +19 -0
  16. openepd/api/epd/dto.py +121 -0
  17. openepd/api/epd/sync_api.py +105 -0
  18. openepd/api/errors.py +86 -0
  19. openepd/api/pcr/__init__.py +19 -0
  20. openepd/api/pcr/dto.py +41 -0
  21. openepd/api/pcr/sync_api.py +49 -0
  22. openepd/api/sync_client.py +67 -0
  23. openepd/api/test/__init__.py +19 -0
  24. openepd/bundle/__init__.py +1 -1
  25. openepd/bundle/base.py +1 -1
  26. openepd/bundle/model.py +5 -6
  27. openepd/bundle/reader.py +5 -5
  28. openepd/bundle/writer.py +5 -4
  29. openepd/compat/__init__.py +19 -0
  30. openepd/compat/pydantic.py +29 -0
  31. openepd/model/__init__.py +1 -1
  32. openepd/model/base.py +114 -15
  33. openepd/model/category.py +39 -0
  34. openepd/model/common.py +33 -25
  35. openepd/model/epd.py +97 -78
  36. openepd/model/factory.py +48 -0
  37. openepd/model/lcia.py +24 -13
  38. openepd/model/org.py +28 -18
  39. openepd/model/pcr.py +42 -14
  40. openepd/model/specs/README.md +19 -0
  41. openepd/model/specs/__init__.py +72 -4
  42. openepd/model/specs/aluminium.py +67 -0
  43. openepd/model/specs/asphalt.py +87 -0
  44. openepd/model/specs/base.py +60 -0
  45. openepd/model/specs/concrete.py +288 -24
  46. openepd/model/specs/generated/accessories.py +63 -0
  47. openepd/model/specs/generated/aggregates.py +71 -0
  48. openepd/model/specs/generated/aluminium.py +66 -0
  49. openepd/model/specs/generated/asphalt.py +86 -0
  50. openepd/model/specs/generated/bulk_materials.py +26 -0
  51. openepd/model/specs/generated/cast_decks_and_underlayment.py +26 -0
  52. openepd/model/specs/generated/cladding.py +214 -0
  53. openepd/model/specs/generated/cmu.py +46 -0
  54. openepd/model/specs/generated/common.py +27 -0
  55. openepd/model/specs/generated/concrete.py +151 -0
  56. openepd/model/specs/generated/conveying_equipment.py +57 -0
  57. openepd/model/specs/generated/electrical.py +297 -0
  58. openepd/model/specs/generated/electrical_transmission_and_distribution_equipment.py +63 -0
  59. openepd/model/specs/generated/electricity.py +26 -0
  60. openepd/model/specs/generated/enums.py +2420 -0
  61. openepd/model/specs/generated/finishes.py +519 -0
  62. openepd/model/specs/generated/fire_and_smoke_protection.py +79 -0
  63. openepd/model/specs/generated/furnishings.py +95 -0
  64. openepd/model/specs/generated/grouting.py +26 -0
  65. openepd/model/specs/generated/manufacturing_inputs.py +131 -0
  66. openepd/model/specs/generated/masonry.py +77 -0
  67. openepd/model/specs/generated/material_handling.py +35 -0
  68. openepd/model/specs/generated/mechanical.py +271 -0
  69. openepd/model/specs/generated/mechanical_insulation.py +41 -0
  70. openepd/model/specs/generated/network_infrastructure.py +181 -0
  71. openepd/model/specs/generated/openings.py +423 -0
  72. openepd/model/specs/generated/other_electrical_equipment.py +26 -0
  73. openepd/model/specs/generated/other_materials.py +123 -0
  74. openepd/model/specs/generated/plumbing.py +153 -0
  75. openepd/model/specs/generated/precast_concrete.py +68 -0
  76. openepd/model/specs/generated/sheathing.py +74 -0
  77. openepd/model/specs/generated/steel.py +224 -0
  78. openepd/model/specs/generated/thermal_moisture_protection.py +233 -0
  79. openepd/model/specs/generated/utility_piping.py +65 -0
  80. openepd/model/specs/generated/wood.py +167 -0
  81. openepd/model/specs/generated/wood_joists.py +38 -0
  82. openepd/model/specs/glass.py +360 -0
  83. openepd/model/specs/steel.py +184 -0
  84. openepd/model/specs/wood.py +130 -0
  85. openepd/model/standard.py +2 -3
  86. openepd/model/validation/__init__.py +19 -0
  87. openepd/model/validation/common.py +59 -0
  88. openepd/model/validation/numbers.py +26 -0
  89. openepd/model/validation/quantity.py +132 -0
  90. openepd/model/versioning.py +129 -0
  91. {openepd-2.0.0.dist-info → openepd-3.1.0.dist-info}/METADATA +36 -5
  92. openepd-3.1.0.dist-info/RECORD +95 -0
  93. openepd-2.0.0.dist-info/RECORD +0 -22
  94. {openepd-2.0.0.dist-info → openepd-3.1.0.dist-info}/LICENSE +0 -0
  95. {openepd-2.0.0.dist-info → openepd-3.1.0.dist-info}/WHEEL +0 -0
@@ -0,0 +1,360 @@
1
+ #
2
+ # Copyright 2024 by C Change Labs Inc. www.c-change-labs.com
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ # This software was developed with support from the Skanska USA,
17
+ # Charles Pankow Foundation, Microsoft Sustainability Fund, Interface, MKA Foundation, and others.
18
+ # Find out more at www.BuildingTransparency.org
19
+ #
20
+ from enum import StrEnum
21
+
22
+ from openepd.compat.pydantic import pyd
23
+ from openepd.model.base import BaseOpenEpdSchema
24
+ from openepd.model.specs.base import BaseOpenEpdHierarchicalSpec
25
+ from openepd.model.specs.generated.enums import NAFSPerformanceGrade
26
+ from openepd.model.validation.numbers import PositiveInt, RatioFloat
27
+ from openepd.model.validation.quantity import HeatConductanceUCIStr, LengthMmStr, PressureMPaStr, QuantityStr
28
+
29
+
30
+ class SolarHeatGainMixin(BaseOpenEpdSchema):
31
+ """Solar heat gain mixin."""
32
+
33
+ solar_heat_gain: RatioFloat | None = pyd.Field(
34
+ default=None,
35
+ description="Solar heat gain, measured at a certain level of Differential Pressure.",
36
+ example=0.3,
37
+ le=1,
38
+ ge=0,
39
+ )
40
+
41
+
42
+ class GlazingOptionsMixin(BaseOpenEpdSchema):
43
+ """Glazing options mixin."""
44
+
45
+ low_emissivity: bool | None = pyd.Field(default=None, description="Low Emissivity coatings")
46
+ electrochromic: bool | None = pyd.Field(
47
+ default=None, description="Glazing with an electrically controllable solar heat gain and/or other properties."
48
+ )
49
+ acid_etched: bool | None = pyd.Field(
50
+ default=None, description="Flat glass that has undergone a chemical etching process."
51
+ )
52
+ tempered: bool | None = pyd.Field(
53
+ default=None,
54
+ description="Consists of a single pane that has been heat-treated "
55
+ "to give the glass increased impact resistance. Standard typically used in North America.",
56
+ )
57
+ toughened: bool | None = pyd.Field(
58
+ default=None,
59
+ description="Consists of a single pane that has been specially heat-treated to give the glass increased "
60
+ "impact resistance. Standard typically used in Europe.",
61
+ )
62
+
63
+ laminated: bool | None = pyd.Field(
64
+ default=None,
65
+ description="Consists of at least two glass panes lying one on top of the other, with one or several layers "
66
+ "of a tear-resistant, viscoelastic film positioned between the panes, which consist of polyvinyl "
67
+ "butyral (PVB)",
68
+ )
69
+ fire_resistant: bool | None = pyd.Field(default=None, description="Fire resistant")
70
+ fire_protection: bool | None = pyd.Field(
71
+ default=None,
72
+ description="Specifically tested for its ability to block flames and smoke, but not radiant heat. Ranges"
73
+ " from specialty tempered products rated for ~20 minutes to glass ceramics rated up to 3 hours.",
74
+ )
75
+ pyrolytic_coated: bool | None = pyd.Field(
76
+ default=None,
77
+ description="At least one coating is applied in a pyrolytic process, typically during float glass production.",
78
+ )
79
+ sputter_coat: bool | None = pyd.Field(
80
+ default=None, description="At least one coating is applied using sputter (vacuum deposition) coating."
81
+ )
82
+
83
+
84
+ class GlassPanesMixin(BaseOpenEpdSchema):
85
+ """Glass panes mixin."""
86
+
87
+ glass_panes: PositiveInt | None = pyd.Field(
88
+ default=None,
89
+ description="Number of panes, each separated by a cavity. A 3 pane unit has 2 cavities. example: 3",
90
+ example=3,
91
+ )
92
+
93
+
94
+ class DPRatingMixin(BaseOpenEpdSchema):
95
+ """Differential pressure rating mixin."""
96
+
97
+ dp_rating: PressureMPaStr | None = pyd.Field(
98
+ default=None, description="Maximum Differential Pressure, a measure of wind tolerance.", example="75 psf"
99
+ )
100
+
101
+
102
+ class AirInfiltrationMixin(BaseOpenEpdSchema):
103
+ """Air infiltration mixin."""
104
+
105
+ air_infiltration: QuantityStr | None = pyd.Field(
106
+ default=None,
107
+ description="Air infiltration, measured at a certain level of Differential Pressure.",
108
+ example="0.3 m3/(sec * m2)",
109
+ )
110
+
111
+
112
+ class AssemblyUFactorMixin(BaseOpenEpdSchema):
113
+ """Assembly U factor mixin."""
114
+
115
+ assembly_u_factor: HeatConductanceUCIStr | None = pyd.Field(
116
+ default=None,
117
+ description="Weighted average conductance of heat across assembly (including frame).",
118
+ example="0.3 UCI",
119
+ )
120
+
121
+
122
+ class GlassIntendedApplicationMixin(BaseOpenEpdSchema):
123
+ """Glass intended application mixin."""
124
+
125
+ glazing_intended_application_curtain_wall: bool | None = pyd.Field(
126
+ default=None, description="Intended for curtain walls. Relevant for IGUs."
127
+ )
128
+ glazing_intended_application_r_windows: bool | None = pyd.Field(
129
+ default=None,
130
+ description="Intended for residential (NAFS 'R') and similar windows, doors, or skylights. Relevant for IGUs.",
131
+ )
132
+ glazing_intended_application_lc_windows: bool | None = pyd.Field(
133
+ default=None, description="Intended for light commercial (NAFS 'LC') and similar windows. Relevant for IGUs."
134
+ )
135
+ glazing_intended_application_cw_windows: bool | None = pyd.Field(
136
+ default=None, description="Intended for commercial (NAFS 'CW') and similar windows. Relevant for IGUs."
137
+ )
138
+ glazing_intended_application_aw_windows: bool | None = pyd.Field(
139
+ default=None, description="Intended for architectural (NAFS 'AW') and similar windows. Relevant for IGUs."
140
+ )
141
+ glazing_intended_application_storefronts: bool | None = pyd.Field(
142
+ default=None, description="Intended for Storefronts and similar applications. Relevant for IGUs."
143
+ )
144
+ glazing_intended_application_glazed_doors: bool | None = pyd.Field(
145
+ default=None, description="Intended for Glazed Doors and similar applications. Relevant for IGUs."
146
+ )
147
+ glazing_intended_application_unit_skylights: bool | None = pyd.Field(
148
+ default=None, description="Intended for Unit Skylights and similar applications. Relevant for IGUs."
149
+ )
150
+ glazing_intended_application_sloped_skylights: bool | None = pyd.Field(
151
+ default=None,
152
+ description="Intended for sloped glazing, and architectural skylights, and similar. Relevant for IGUs.",
153
+ )
154
+ glazing_intended_application_other: bool | None = pyd.Field(
155
+ default=None, description="Intended for other application not listed. Relevant for IGUs."
156
+ )
157
+
158
+
159
+ class ThermalSeparationEnum(StrEnum):
160
+ """Thermal separation enum."""
161
+
162
+ ALUMINIUM = "Aluminium"
163
+ STEEL = "Steel"
164
+ THERMALLY_IMPROVED_METAL = "Thermally Improved Metal"
165
+ THERMALLY_BROKEN_METAL = "Thermally Broken Metal"
166
+ NON_METAL = "Nonmetal"
167
+
168
+
169
+ class ThermalSeparationMixin(BaseOpenEpdSchema):
170
+ """Thermal separation mixin."""
171
+
172
+ thermal_separation: ThermalSeparationEnum | None = pyd.Field(default=None, description="Thermal separation.")
173
+
174
+
175
+ class HurricaneResistantMixin(BaseOpenEpdSchema):
176
+ """Hurricane resistant mixin."""
177
+
178
+ hurricane_resistant: bool | None = pyd.Field(
179
+ default=None, description="The product has been designed to resist windborne debris."
180
+ )
181
+
182
+
183
+ class SpacerEnum(StrEnum):
184
+ """Spacer enum."""
185
+
186
+ ALUMINIUM = "Aluminium"
187
+ STAINLESS_STEEL = "Stainless steel"
188
+ PLASTIC_AND_STAINLESS_STEEL = "Plastic and stainless steel"
189
+ THERMOPLASTIC = "Thermoplastic"
190
+ FOAM = "Foam"
191
+ STAINLESS_STEEL_AND_TIN = "Stainless steel or tin plate U-channel"
192
+ PLASTIC = "Plastic"
193
+
194
+
195
+ class FenestrationHardwareFunctionEnum(StrEnum):
196
+ """Fenestration hardware function enum."""
197
+
198
+ LOCK = "Lock"
199
+ HINGE = "Hinge"
200
+ HANDLE = "Handle"
201
+ OPERATOR = "Operator"
202
+ BALANCE = "Balance"
203
+ OTHER = "Other"
204
+
205
+
206
+ class FrameMaterialEnum(StrEnum):
207
+ """Framing material enum."""
208
+
209
+ VINYL = "Vinyl"
210
+ ALUMINIUM = "Aluminium"
211
+ STEEL = "Steel"
212
+ WOOD = "Wood"
213
+ FIBERGLASS = "Fiberglass"
214
+ COMPOSITE = "Composite"
215
+ NONE = "None"
216
+ OTHER = "Other"
217
+
218
+
219
+ class NAFSFenestrationV1(
220
+ GlassPanesMixin,
221
+ DPRatingMixin,
222
+ AirInfiltrationMixin,
223
+ SolarHeatGainMixin,
224
+ AssemblyUFactorMixin,
225
+ ThermalSeparationMixin,
226
+ GlazingOptionsMixin,
227
+ HurricaneResistantMixin,
228
+ BaseOpenEpdHierarchicalSpec,
229
+ ):
230
+ """NAFS Fenestration V1 spec."""
231
+
232
+ _EXT_VERSION = "1.0"
233
+ nafs_performance_class_r: bool | None = pyd.Field(
234
+ default=None, description="Residential; commonly used in one- and two-family dwellings."
235
+ )
236
+ nafs_performance_class_lc: bool | None = pyd.Field(
237
+ default=None,
238
+ description="Light Commercial: commonly used in low-rise and mid-rise multi-family dwellings and other "
239
+ "buildings where larger sizes and higher loading requirements are expected.",
240
+ )
241
+ nafs_performance_class_cw: bool | None = pyd.Field(
242
+ default=None,
243
+ description="Commercial Window: commonly used in low-rise and mid-rise buildings where larger sizes, higher "
244
+ "loading requirements, limits on deflection, and heavy use are expected.",
245
+ )
246
+ nafs_performance_class_aw: bool | None = pyd.Field(
247
+ default=None,
248
+ description="Architectural Window: commonly used in high-rise and mid-rise buildings to meet increased "
249
+ "loading requirements and limits on deflection, and in buildings where frequent and extreme use "
250
+ "of the fenestration products is expected.",
251
+ )
252
+
253
+ nafs_performance_grade: NAFSPerformanceGrade | None = pyd.Field(
254
+ default=None,
255
+ description="NAFS Performance Grade. The NAFS Performance Grade is a number that represents the performance "
256
+ "of the glazing product. The higher the number, the better the performance. The NAFS Performance "
257
+ "Grade is calculated using the NAFS Performance Class, the NAFS Performance Index, and the NAFS "
258
+ "Performance Factor. While it is expressed as pressure, there are specific values which are "
259
+ "allowed. The values are listed in the enum.",
260
+ )
261
+
262
+
263
+ class InsulatingGlazingUnitsV1(
264
+ GlassPanesMixin,
265
+ DPRatingMixin,
266
+ AirInfiltrationMixin,
267
+ SolarHeatGainMixin,
268
+ GlazingOptionsMixin,
269
+ HurricaneResistantMixin,
270
+ GlassIntendedApplicationMixin,
271
+ BaseOpenEpdHierarchicalSpec,
272
+ ):
273
+ """Insulating glazing units V1 spec."""
274
+
275
+ _EXT_VERSION = "1.0"
276
+
277
+ cog_u_factor: HeatConductanceUCIStr | None = pyd.Field(
278
+ default=None, description="Conductance of heat at center of glass.", example="0.3 UCI"
279
+ )
280
+ spacer: SpacerEnum | None = pyd.Field(default=None, description="Spacer material for Integrated Glass Unit.")
281
+
282
+
283
+ class FenestrationFramingV1(GlassIntendedApplicationMixin, BaseOpenEpdHierarchicalSpec):
284
+ """Fenestration framing V1 spec."""
285
+
286
+ _EXT_VERSION = "1.0"
287
+
288
+ frame_material: FrameMaterialEnum | None = pyd.Field(default=None, description="Frame material.")
289
+
290
+
291
+ class FenestrationHardwareV1(BaseOpenEpdHierarchicalSpec):
292
+ """Fenestration hardware V1 spec."""
293
+
294
+ _EXT_VERSION = "1.0"
295
+
296
+ hardware_function: FenestrationHardwareFunctionEnum | None = pyd.Field(
297
+ default=None, description="Hardware function."
298
+ )
299
+
300
+
301
+ class FenestrationPartsV1(GlassIntendedApplicationMixin, BaseOpenEpdHierarchicalSpec):
302
+ """Fenestration parts V1 spec."""
303
+
304
+ _EXT_VERSION = "1.0"
305
+
306
+ FenestrationHardware: FenestrationHardwareV1 | None = pyd.Field(
307
+ default=None, title="FenestrationHardwareV1", description="Fenestration hardware V1 spec."
308
+ )
309
+ FenestrationFraming: FenestrationFramingV1 | None = pyd.Field(
310
+ default=None, title="FenestrationFramingV1", description="Fenestration framing V1 spec."
311
+ )
312
+
313
+
314
+ class ProcessedNonInsulatedGlassPanesV1(
315
+ GlassPanesMixin, SolarHeatGainMixin, GlazingOptionsMixin, BaseOpenEpdHierarchicalSpec
316
+ ):
317
+ """Processed non-insulated glass panes V1 spec."""
318
+
319
+ _EXT_VERSION = "1.0"
320
+
321
+
322
+ class FlatGlassPanesV1(BaseOpenEpdHierarchicalSpec):
323
+ """Flat glass panes."""
324
+
325
+ _EXT_VERSION = "1.0"
326
+ flat_glass_panes_thickness: LengthMmStr | None = pyd.Field(
327
+ default=None, description="Thickness of the flat glass panes.", example="8 mm"
328
+ )
329
+
330
+
331
+ class GlassPanesV1(BaseOpenEpdHierarchicalSpec):
332
+ """Glass panes V1 spec."""
333
+
334
+ _EXT_VERSION = "1.0"
335
+
336
+ ProcessedNonInsulatedGlassPanes: ProcessedNonInsulatedGlassPanesV1 | None = pyd.Field(
337
+ default=None,
338
+ title="ProcessedNonInsulatedGlassPanesV1",
339
+ description="Processed non-insulated glass panes V1 spec.",
340
+ )
341
+ FlatGlassPanes: FlatGlassPanesV1 | None = pyd.Field(
342
+ default=None, title="FlatGlassPanes", description="Flat glass panes spec."
343
+ )
344
+
345
+
346
+ class GlazingV1(BaseOpenEpdHierarchicalSpec):
347
+ """Glazing V1 spec."""
348
+
349
+ _EXT_VERSION = "1.0"
350
+ thickness: str | None = pyd.Field(default=None, description="Thickness of the glazing.")
351
+ GlassPanes: GlassPanesV1 | None = pyd.Field(default=None, title="GlassPanesV1", description="Glass panes V1 spec.")
352
+ InsulatingGlazingUnits: InsulatingGlazingUnitsV1 | None = pyd.Field(
353
+ default=None, title="InsulatingGlazingUnitsV1", description="Insulating glazing units V1 spec."
354
+ )
355
+ NAFSFenestration: NAFSFenestrationV1 | None = pyd.Field(
356
+ default=None, title="NAFSFenestrationV1", description="NAFS Fenestration V1 spec."
357
+ )
358
+ FenestrationParts: FenestrationPartsV1 | None = pyd.Field(
359
+ default=None, title="FenestrationPartsV1", description="Fenestration parts V1 spec."
360
+ )
@@ -0,0 +1,184 @@
1
+ #
2
+ # Copyright 2024 by C Change Labs Inc. www.c-change-labs.com
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ # This software was developed with support from the Skanska USA,
17
+ # Charles Pankow Foundation, Microsoft Sustainability Fund, Interface, MKA Foundation, and others.
18
+ # Find out more at www.BuildingTransparency.org
19
+ #
20
+ from enum import StrEnum
21
+
22
+ from openepd.compat.pydantic import pyd
23
+ from openepd.model.base import BaseOpenEpdSchema
24
+ from openepd.model.common import OpenEPDUnit
25
+ from openepd.model.specs.base import BaseOpenEpdHierarchicalSpec
26
+ from openepd.model.specs.generated.enums import SteelComposition
27
+ from openepd.model.standard import Standard
28
+ from openepd.model.validation.numbers import RatioFloat
29
+ from openepd.model.validation.quantity import LengthMmStr, validate_unit_factory
30
+
31
+
32
+ class SteelMakingRoute(BaseOpenEpdSchema):
33
+ """Steel making route."""
34
+
35
+ bof: bool | None = pyd.Field(default=None, description="Basic oxygen furnace")
36
+ eaf: bool | None = pyd.Field(default=None, description="Electric arc furnace")
37
+ ohf: bool | None = pyd.Field(default=None, description="Open hearth furnace")
38
+
39
+
40
+ class FabricatedOptionsMixin(pyd.BaseModel):
41
+ """Fabricated options mixin."""
42
+
43
+ _EXT_VERSION = "1.0"
44
+
45
+ fabricated: bool | None = pyd.Field(default=None, description="Fabricated")
46
+
47
+
48
+ class WireMeshSteelV1(BaseOpenEpdHierarchicalSpec):
49
+ """Spec for wire mesh steel."""
50
+
51
+ _EXT_VERSION = "1.0"
52
+
53
+ class Options(BaseOpenEpdSchema, FabricatedOptionsMixin):
54
+ """Wire Mesh Options."""
55
+
56
+ pass
57
+
58
+ options: Options = pyd.Field(description="Rebar Steel options", default_factory=Options)
59
+
60
+
61
+ class RebarGrade(StrEnum):
62
+ """Rebar grade enum."""
63
+
64
+ USA_60_KSI = "60 ksi"
65
+ USA_75_KIS = "75 ksi"
66
+ USA_80_KSI = "80 ksi"
67
+ USA_90_KSI = "90 ksi"
68
+ USA_100_KSI = "100 ksi"
69
+ USA_120_KSI = "120 ksi"
70
+ USA_40_KSI = "40 ksi"
71
+ USA_50_KSI = "50 ksi"
72
+
73
+ METRIC_420_MPA = "420 Mpa"
74
+ METRIC_520_MPA = "520 Mpa"
75
+ METRIC_550_MPA = "550 Mpa"
76
+ METRIC_620_MPA = "620 Mpa"
77
+ METRIC_690_MPA = "690 MPa"
78
+ METRIC_830_MPA = "830 Mpa"
79
+ METRIC_280_MPA = "280 MPa"
80
+ METRIC_350_MPA = "350 Mpa"
81
+
82
+
83
+ class RebarSteelV1(BaseOpenEpdHierarchicalSpec):
84
+ """Rebar steel spec."""
85
+
86
+ _EXT_VERSION = "1.0"
87
+
88
+ class Options(BaseOpenEpdSchema, FabricatedOptionsMixin):
89
+ """Rebar Steel Options."""
90
+
91
+ epoxy: bool | None = pyd.Field(default=None, description="Epoxy Coated")
92
+
93
+ options: Options = pyd.Field(description="Rebar Steel options", default_factory=Options)
94
+
95
+ steel_rebar_grade: RebarGrade | None = pyd.Field(default=None, description="Rebar steel grade")
96
+ steel_rebar_diameter_min: LengthMmStr | None = pyd.Field(default=None, description="Minimum rebar diameter")
97
+ _steel_rebar_diameter_min = pyd.validator("steel_rebar_diameter_min", allow_reuse=True)(
98
+ validate_unit_factory(OpenEPDUnit.m)
99
+ )
100
+
101
+ steel_rebar_bending_pin_max: float | None = pyd.Field(
102
+ default=None, description="Maximum rebar bending pin in diameters of this rebar", example=6.2
103
+ )
104
+ steel_rebar_ts_ys_ratio_max: float | None = pyd.Field(
105
+ default=None, description="Max ratio of ultimate tensile to yield tensile strength"
106
+ )
107
+
108
+
109
+ class PlateSteelV1(BaseOpenEpdHierarchicalSpec):
110
+ """Plate Steel Spec."""
111
+
112
+ _EXT_VERSION = "1.0"
113
+
114
+ class Options(BaseOpenEpdSchema, FabricatedOptionsMixin):
115
+ """Plate Steel Options."""
116
+
117
+ pass
118
+
119
+ options: Options = pyd.Field(description="Plate Steel options", default_factory=Options)
120
+
121
+
122
+ class HollowV1(BaseOpenEpdHierarchicalSpec):
123
+ """Hollow Sections Spec."""
124
+
125
+ _EXT_VERSION = "1.0"
126
+
127
+ class Options(FabricatedOptionsMixin, BaseOpenEpdSchema):
128
+ """Hollow Sections Options."""
129
+
130
+ pass
131
+
132
+ options: Options = pyd.Field(description="Hollow Steel options", default_factory=Options)
133
+
134
+
135
+ class HotRolledV1(BaseOpenEpdHierarchicalSpec):
136
+ """Hot Rolled spec."""
137
+
138
+ _EXT_VERSION = "1.0"
139
+
140
+ class Options(FabricatedOptionsMixin, BaseOpenEpdSchema):
141
+ """Hot Rolled options."""
142
+
143
+ pass
144
+
145
+ options: Options = pyd.Field(description="Hollow Steel options", default_factory=Options)
146
+
147
+
148
+ class SteelV1(BaseOpenEpdHierarchicalSpec):
149
+ """Steel spec."""
150
+
151
+ _EXT_VERSION = "1.0"
152
+
153
+ class Options(BaseOpenEpdSchema):
154
+ """Steel spec options."""
155
+
156
+ galvanized: bool | None = pyd.Field(default=None, description="Galvanized")
157
+ cold_finished: bool | None = pyd.Field(default=None, description="Cold Finished")
158
+
159
+ form_factor: str | None = pyd.Field(description="Product's form factor", example="Steel >> RebarSteel")
160
+ steel_composition: SteelComposition | None = pyd.Field(default=None, description="Basic chemical composition")
161
+ recycled_content: RatioFloat | None = pyd.Field(
162
+ default=None,
163
+ example=0.3,
164
+ description="Scrap steel inputs from other processes. Includes "
165
+ "Post-Consumer content, if any. This percentage may be "
166
+ "used to evaluate the EPD w.r.t. targets or limits that are"
167
+ " different for primary and recycled content.",
168
+ )
169
+ ASTM: list[Standard] = pyd.Field(description="ASTM standard to which this product complies", default_factory=list)
170
+ SAE: list[Standard] = pyd.Field(
171
+ description="AISA/SAE standard to which this product complies", default_factory=list
172
+ )
173
+ EN: list[Standard] = pyd.Field(description="EN 10027 number(s)", default_factory=list)
174
+
175
+ options: Options | None = pyd.Field(description="Steel options", default_factory=Options)
176
+ making_route: SteelMakingRoute | None = pyd.Field(default=None, description="Steel making route")
177
+
178
+ # Nested specs
179
+
180
+ WireMeshSteel: WireMeshSteelV1 | None = None
181
+ RebarSteel: RebarSteelV1 | None = None
182
+ PlateSteel: PlateSteelV1 | None = None
183
+ Hollow: HollowV1 | None = None
184
+ HotRolled: HotRolledV1 | None = None
@@ -0,0 +1,130 @@
1
+ #
2
+ # Copyright 2024 by C Change Labs Inc. www.c-change-labs.com
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ #
16
+ # This software was developed with support from the Skanska USA,
17
+ # Charles Pankow Foundation, Microsoft Sustainability Fund, Interface, MKA Foundation, and others.
18
+ # Find out more at www.BuildingTransparency.org
19
+ #
20
+ from enum import StrEnum
21
+
22
+ from openepd.compat.pydantic import pyd
23
+ from openepd.model.org import OrgRef
24
+ from openepd.model.specs.base import BaseOpenEpdHierarchicalSpec
25
+ from openepd.model.validation.numbers import RatioFloat
26
+
27
+
28
+ class TimberSpecies(StrEnum):
29
+ """Timber species enum."""
30
+
31
+ Alaska_Cedar = "Alaska Cedar"
32
+ Douglas_Fir_Larch = "Douglas Fir-Larch"
33
+ Eastern_Spruce = ("Eastern Spruce",)
34
+ Hem_Fir = "Hem-Fir"
35
+ Softwood_Species = "Softwood Species"
36
+ Southern_Pine = ("Southern Pine",)
37
+ Spruce_Pine_Fir = "Spruce-Pine-Fir"
38
+ Group_A_Hardwoods = ("Group A Hardwoods",)
39
+ Group_B_Hardwoods = "Group B Hardwoods"
40
+ Group_C_Hardwoods = ("Group C Hardwoods",)
41
+ Group_D_Hardwoods = "Group D Hardwoods"
42
+ Alaska_Hemlock = "Alaska Hemlock"
43
+ Alaska_Spruce = ("Alaska Spruce",)
44
+ Alaska_Yellow_Cedar = "Alaska Yellow Cedar"
45
+ Aspen = "Aspen"
46
+ Baldcypress = ("Baldcypress",)
47
+ Balsam_Fir = "Balsam Fir"
48
+ Beech_Birch_Hickory = ("Beech-Birch-Hickory",)
49
+ Coast_Sitka_Spruce = "Coast Sitka Spruce"
50
+ Coast_Species = "Coast Species"
51
+ Cottonwood = ("Cottonwood",)
52
+ Douglas_Fir_Larch_North = "Douglas Fir-Larch (North)"
53
+ Douglas_Fir_South = ("Douglas Fir-South",)
54
+ Eastern_Hemlock = "Eastern Hemlock"
55
+ Eastern_Hemlock_Balsam_Fir = ("Eastern Hemlock-Balsam Fir",)
56
+ Eastern_Hemlock_Tamarack = ("Eastern Hemlock-Tamarack",)
57
+ Eastern_Hemlock_Tamarack_North = "Eastern Hemlock-Tamarack (North)"
58
+ Eastern_Softwoods = ("Eastern Softwoods",)
59
+ Eastern_White_Pine = "Eastern White Pine"
60
+ Eastern_White_Pine_North = ("Eastern White Pine (North)",)
61
+ Hem_Fir_North = "Hem-Fir (North)"
62
+ Mixed_Maple = "Mixed Maple"
63
+ Mixed_Oak = ("Mixed Oak",)
64
+ Mixed_Southern_Pine = "Mixed Southern Pine"
65
+ Mountain_Hemlock = ("Mountain Hemlock",)
66
+ Northern_Pine = "Northern Pine"
67
+ Northern_Red_Oak = "Northern Red Oak"
68
+ Northern_Species = ("Northern Species",)
69
+ Northern_White_Cedar = "Northern White Cedar"
70
+ Ponderosa_Pine = "Ponderosa Pine"
71
+ Red_Maple = ("Red Maple",)
72
+ Red_Oak = "Red Oak"
73
+ Red_Pine = "Red Pine"
74
+ Redwood = "Redwood"
75
+ Sitka_Spruce = ("Sitka Spruce",)
76
+ Scots_Pine = "Scots Pine"
77
+ Spruce_Pine_Fir_South = ("Spruce-Pine-Fir (South)",)
78
+ Western_Cedars = "Western Cedars"
79
+ Western_Cedars_North = ("Western Cedars (North)",)
80
+ Western_Hemlock = "Western Hemlock"
81
+ Western_Hemlock_North = ("Western Hemlock (North)",)
82
+ Western_White_Pine = "Western White Pine"
83
+ Western_Woods = "Western Woods"
84
+ White_Oak = ("White Oak",)
85
+ Yellow_Cedar = "Yellow Cedar"
86
+ Yellow_Poplar = "Yellow Poplar"
87
+
88
+
89
+ class TimberFabrication(StrEnum):
90
+ """Timber fabrication enum."""
91
+
92
+ Bonded_Strand = "Bonded Strand"
93
+ CLT = "CLT"
94
+ DLT = "DLT"
95
+ Fiberboard = "Fiberboard"
96
+ GLT = "GLT"
97
+ LVL = "LVL"
98
+ NLT = "NLT"
99
+ OSB = "OSB"
100
+ Plywood = "Plywood"
101
+
102
+
103
+ class TimberV1(BaseOpenEpdHierarchicalSpec):
104
+ """Timber specific specs."""
105
+
106
+ _EXT_VERSION = "1.0"
107
+
108
+ # tood restore this if needed? No data in DB.
109
+ # timber_strength_grade: str | None = pyd.Field(default=None, description="Timber strength grade")
110
+
111
+ # Forest Stewardship Council certified proportion. Range is 0 to 1; express as a percentage.
112
+ fsc_certified: RatioFloat | None = pyd.Field(
113
+ default=None, description="Forest Stewardship Council certified proportion"
114
+ )
115
+ recycled_content: RatioFloat | None = pyd.Field(default=None, description="Recycled content")
116
+
117
+ weather_exposed: bool | None = pyd.Field(default=False, description="Weather exposed")
118
+ fire_retardant: bool | None = pyd.Field(default=None, description="Fire retardant")
119
+ decay_resistant: bool | None = pyd.Field(default=None, description="Decay resistant")
120
+
121
+ timber_species: TimberSpecies | None = pyd.Field(default=None, description="Timber species")
122
+ fabrication: TimberFabrication | None = pyd.Field(default=None, description="Timber fabrication")
123
+
124
+ forest_practices_certifiers: list[OrgRef] | None = pyd.Field(
125
+ default=None, description="List of organizations that certify forest practices."
126
+ )
127
+ # Todo forest practices certifiers
128
+ # rel_forest_practices_certifiers: neomodel.ZeroOrMore = ogm.RelationshipFrom(
129
+ # Org, RelType.FOREST_PRACTICES_CERTIFIED, model=ogm.CertifiesRel
130
+ # )
openepd/model/standard.py CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2023 by C Change Labs Inc. www.c-change-labs.com
2
+ # Copyright 2024 by C Change Labs Inc. www.c-change-labs.com
3
3
  #
4
4
  # Licensed under the Apache License, Version 2.0 (the "License");
5
5
  # you may not use this file except in compliance with the License.
@@ -17,8 +17,7 @@
17
17
  # Charles Pankow Foundation, Microsoft Sustainability Fund, Interface, MKA Foundation, and others.
18
18
  # Find out more at www.BuildingTransparency.org
19
19
  #
20
- import pydantic as pyd
21
-
20
+ from openepd.compat.pydantic import pyd
22
21
  from openepd.model.base import BaseOpenEpdSchema
23
22
  from openepd.model.org import Org
24
23