openepd 4.13.0__py3-none-any.whl → 4.13.1__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.
openepd/__version__.py CHANGED
@@ -13,4 +13,4 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
- VERSION = "4.13.0"
16
+ VERSION = "4.13.1"
@@ -24,7 +24,7 @@ from openepd.model.org import Org
24
24
  from openepd.model.pcr import Pcr
25
25
  from openepd.model.standard import Standard
26
26
  from openepd.model.validation.common import ReferenceStr
27
- from openepd.model.validation.quantity import AmountMass
27
+ from openepd.model.validation.quantity import AmountGWP, AmountMass
28
28
 
29
29
  DEVELOPER_DESCRIPTION = "The organization responsible for the underlying LCA (and subsequent summarization as EPD)."
30
30
  PROGRAM_OPERATOR_DESCRIPTION = "JSON object for program operator Org"
@@ -136,19 +136,19 @@ class BaseDeclaration(RootDocument, abc.ABC):
136
136
  description="Link to data object on original registrar's site",
137
137
  example="https://epd-online.com/EmbeddedEpdList/Download/6029",
138
138
  )
139
- kg_C_per_declared_unit: AmountMass | None = pyd.Field(
139
+ kg_C_per_declared_unit: AmountGWP | None = pyd.Field(
140
140
  default=None,
141
141
  description="Mass of elemental carbon, per declared unit, contained in the product itself at the manufacturing "
142
142
  "facility gate. Used (among other things) to check a carbon balance or calculate incineration "
143
143
  "emissions. The source of carbon (e.g. biogenic) is not relevant in this field.",
144
- example=Amount(qty=8.76, unit="kg"),
144
+ example=Amount(qty=8.76, unit="kgCO2e"),
145
145
  )
146
- kg_C_biogenic_per_declared_unit: AmountMass | None = pyd.Field(
146
+ kg_C_biogenic_per_declared_unit: AmountGWP | None = pyd.Field(
147
147
  default=None,
148
148
  description="Mass of elemental carbon from biogenic sources, per declared unit, contained in the product "
149
149
  "itself at the manufacturing facility gate. It may be presumed that any biogenic carbon content "
150
150
  "has been accounted for as -44/12 kgCO2e per kg C in stages A1-A3, per EN15804 and ISO 21930.",
151
- example=Amount(qty=8.76, unit="kg"),
151
+ example=Amount(qty=8.76, unit="kgCO2e"),
152
152
  )
153
153
  product_service_life_years: float | None = pyd.Field(
154
154
  gt=0.0009,
@@ -154,6 +154,12 @@ class AmountMass(AmountWithDimensionality):
154
154
  dimensionality_unit = OpenEPDUnit.kg
155
155
 
156
156
 
157
+ class AmountGWP(AmountWithDimensionality):
158
+ """Amount of Global Warming Potential, measured in kgCO2e."""
159
+
160
+ dimensionality_unit = OpenEPDUnit.kg_co2
161
+
162
+
157
163
  class QuantityStr(str):
158
164
  """
159
165
  Quantity string type.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openepd
3
- Version: 4.13.0
3
+ Version: 4.13.1
4
4
  Summary: Python library to work with OpenEPD format
5
5
  Home-page: https://github.com/cchangelabs/openepd
6
6
  License: Apache-2.0
@@ -19,6 +19,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
19
  Provides-Extra: api-client
20
20
  Requires-Dist: email-validator (>=1.3.1)
21
21
  Requires-Dist: idna (>=3.7)
22
+ Requires-Dist: open-xpd-uuid (>=0.2.1,<0.3.0)
22
23
  Requires-Dist: pydantic (>=1.10,<3.0)
23
24
  Requires-Dist: requests (>=2.0) ; extra == "api-client"
24
25
  Project-URL: Repository, https://github.com/cchangelabs/openepd
@@ -1,5 +1,5 @@
1
1
  openepd/__init__.py,sha256=Shkfh0Kun0YRhmRDw7LkUj2eQL3X-HnP55u2THOEALw,794
2
- openepd/__version__.py,sha256=ct2ojZmiO087rEAYSPIKIFv4c6Tf57TQ7E0AKUt3Iyw,639
2
+ openepd/__version__.py,sha256=skWn8lNYRY1krgXL7HFsuh6dnHokDsy-8QJUAU1RA6k,639
3
3
  openepd/api/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
4
4
  openepd/api/average_dataset/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
5
5
  openepd/api/average_dataset/generic_estimate_sync_api.py,sha256=DM7i8gugUIEAutEsakEUxFjwgtKmcytkjvNAvfhVYUs,7690
@@ -36,7 +36,7 @@ openepd/model/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
36
36
  openepd/model/base.py,sha256=OEYNFUTL4BivBNAt_LGowTlDuUjvKMHgf5U5ZBncZwQ,9805
37
37
  openepd/model/category.py,sha256=IQXNGQFQmFZ_H9PRONloX_UOSf1sTMDq1rM1yz8JR0Y,1639
38
38
  openepd/model/common.py,sha256=hXnz2QiQDx3Z7F4BMHlHQ2iddq3OonKrveltl-nOiEI,5468
39
- openepd/model/declaration.py,sha256=9KnmYr3ZLpkbBFVkesaEdDtGpG-SrVFuIOO2ekRyTgk,10796
39
+ openepd/model/declaration.py,sha256=CpD08iZg4jcUu_p1962wIw-euB0mpqd3eu9KH_DoLx4,10813
40
40
  openepd/model/epd.py,sha256=GU7OW6hp9GeLB9PUGqacDYMAJVWmAAHzGp3dZs2aGqo,7479
41
41
  openepd/model/factory.py,sha256=XP7eeQNW5tqwX_4hfuEb3lK6BFQDb4KB0fSN0r8-lCU,2656
42
42
  openepd/model/generic_estimate.py,sha256=bbU0cR4izSqjZcfxUHNbdO4pllqqd8OaUFikrEgCFoA,3992
@@ -93,11 +93,11 @@ openepd/model/standard.py,sha256=QhGpWN3U27fDcS0Yy1Dk8ElJfD0etet6i_PzoTD6B48,131
93
93
  openepd/model/validation/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
94
94
  openepd/model/validation/common.py,sha256=FLYqK8gYFagx08LCkS0jy3qo4-Zq9VAv5i8ZwF2svkc,2435
95
95
  openepd/model/validation/numbers.py,sha256=tgirqrDGgrSo6APGlW1ozNuVV8mJz_4HCAXS2OUENq0,888
96
- openepd/model/validation/quantity.py,sha256=h4AXXMijFtJRFUb5bi_iRzK2v7v1CtggLi7CyK5bA4s,8349
96
+ openepd/model/validation/quantity.py,sha256=rGAG-J7wKvi0L6Wx8gp7KbkvIveuOlfPgjD9HLpHiuM,8506
97
97
  openepd/model/versioning.py,sha256=R_zm6rCrgF3vlJQYbpyWhirdS_Oek16cv_mvZmpuE8I,4473
98
98
  openepd/patch_pydantic.py,sha256=xrkzblatmU9HBzukWkp1cPq9ZSuohoz1p0pQqVKSlKs,4122
99
99
  openepd/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
- openepd-4.13.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
- openepd-4.13.0.dist-info/METADATA,sha256=eO3P8R_93hVQpLWCZOuDVScaXDdq8wsYkahzx5N7ifo,8705
102
- openepd-4.13.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
103
- openepd-4.13.0.dist-info/RECORD,,
100
+ openepd-4.13.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
101
+ openepd-4.13.1.dist-info/METADATA,sha256=xIjx-ZgvbpKWO4XrRTnm-vMWkBNpHmqfqC4YNqAjAuE,8751
102
+ openepd-4.13.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
103
+ openepd-4.13.1.dist-info/RECORD,,