openepd 6.0.1__py3-none-any.whl → 6.2.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.
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 = "6.0.1"
16
+ VERSION = "6.2.0"
openepd/bundle/model.py CHANGED
@@ -13,6 +13,7 @@
13
13
  # See the License for the specific language governing permissions and
14
14
  # limitations under the License.
15
15
  #
16
+ from datetime import datetime
16
17
  from enum import StrEnum
17
18
 
18
19
  from openepd.compat.pydantic import pyd
@@ -61,6 +62,8 @@ class BundleManifest(BaseOpenEpdSchema):
61
62
  """The generator of the bundle."""
62
63
  assets: BundleManifestAssetsStats = pyd.Field(default_factory=BundleManifestAssetsStats)
63
64
  comment: str | None = pyd.Field(default=None)
65
+ created_at: datetime = pyd.Field(default_factory=datetime.utcnow)
66
+ """The date and time when the bundle was generated."""
64
67
 
65
68
 
66
69
  class AssetInfo(BaseOpenEpdSchema):
openepd/model/standard.py CHANGED
@@ -15,15 +15,26 @@
15
15
  #
16
16
  from openepd.compat.pydantic import pyd
17
17
  from openepd.model.base import BaseOpenEpdSchema
18
- from openepd.model.org import Org
18
+ from openepd.model.org import OrgRef
19
+ from openepd.model.validation.common import ReferenceStr
19
20
 
20
21
 
21
- class Standard(BaseOpenEpdSchema):
22
+ class StandardRef(BaseOpenEpdSchema):
23
+ """Reference version (short) of Standard."""
24
+
25
+ ref: ReferenceStr | None = pyd.Field(
26
+ default=None,
27
+ example="https://openepd.buildingtransparency.org/api/standards/EN15804",
28
+ description="Reference to this Standard's JSON object",
29
+ )
30
+ short_name: str | None = pyd.Field(description="Short-form of name of standard. Must be unique. Case-insensitive")
31
+
32
+
33
+ class Standard(StandardRef):
22
34
  """A standard, such as EN 15804, ISO 14044, ISO 14024:2018, etc."""
23
35
 
24
- short_name: str = pyd.Field(description="Short-form of name of standard. Must be unique. Case-insensitive")
25
36
  name: str | None = pyd.Field(description="Full document name. Must be unique. Case-insensitive", default=None)
26
37
  link: pyd.AnyUrl | None = pyd.Field(
27
38
  description="Link to the exact standard (including version) referred to", default=None
28
39
  )
29
- issuer: Org | None = pyd.Field(description="Org that issued this standard", default=None)
40
+ issuer: OrgRef | None = pyd.Field(description="Org that issued this standard", default=None)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openepd
3
- Version: 6.0.1
3
+ Version: 6.2.0
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
@@ -1,5 +1,5 @@
1
1
  openepd/__init__.py,sha256=Shkfh0Kun0YRhmRDw7LkUj2eQL3X-HnP55u2THOEALw,794
2
- openepd/__version__.py,sha256=Oa5j0gzOB1wIVumdMbOVzGNMS9BPyyfZpuNULXNLrw4,638
2
+ openepd/__version__.py,sha256=jAQO98uPb9JBudq_etYXIE_CAsYMQVe2UwsQNueY3Pw,638
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=mxWwDokEGMe87Px8C_aHvIdVKZVHrEAuVtaSA1zJchU,7953
@@ -26,7 +26,7 @@ openepd/api/test/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,
26
26
  openepd/api/utils.py,sha256=9kdWbJ-m0IqsrkPQpGkILIQlR1WPd9rRlko-ymj9gtI,2092
27
27
  openepd/bundle/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
28
28
  openepd/bundle/base.py,sha256=mOt3h3MuQyc1yunp9u6_CVYDtSdWQHZcx8cNfbNkqoY,6869
29
- openepd/bundle/model.py,sha256=yICEHl7ZWDXHGx4rhFomCwa-ganjUtykyj_fpWw_6OI,2446
29
+ openepd/bundle/model.py,sha256=L1KIBt2OBb4TAzHFMBe1p9gwKZZNHKKZ5j5GOxuDBcU,2605
30
30
  openepd/bundle/reader.py,sha256=B1clVF-lUMqZOvNZCypYK55C-DWOo7dOV0KlvsREA1o,6687
31
31
  openepd/bundle/writer.py,sha256=YxuDLzR9OM4NqcqeodWQWFK_kZhmsPJISao5XVZvw-M,8136
32
32
  openepd/compat/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
@@ -124,7 +124,7 @@ openepd/model/specs/singular/thermal_moisture_protection.py,sha256=rwwxAj0TFKuI2
124
124
  openepd/model/specs/singular/utility_piping.py,sha256=8Rs-5Xoe8mepH8nY7-a6zvAxPr1TKL2XJHpYDSy3atM,2483
125
125
  openepd/model/specs/singular/wood.py,sha256=Bxf7LeodG0DQUdXiYgRWDeQtuYQ6Vpck4Uw4wF7tUzY,6591
126
126
  openepd/model/specs/singular/wood_joists.py,sha256=LWkm3s7yW0S-IN5oeoj6g99CdAdQvplvbjVIyezaZx0,1719
127
- openepd/model/standard.py,sha256=QhGpWN3U27fDcS0Yy1Dk8ElJfD0etet6i_PzoTD6B48,1318
127
+ openepd/model/standard.py,sha256=m_I-36QNX5b89Nm7A2R579sn1QLSMdKnbneN2r3yVG4,1688
128
128
  openepd/model/validation/__init__.py,sha256=UGmZGEyMnASrYwEBPHuXmVzHiuCUskUsJEPoHTIo-lg,620
129
129
  openepd/model/validation/common.py,sha256=FLYqK8gYFagx08LCkS0jy3qo4-Zq9VAv5i8ZwF2svkc,2435
130
130
  openepd/model/validation/enum.py,sha256=06Fi2_sdjVhOElavtgvNXvkKU0NQ-bcAFx5_5MiDzdU,1793
@@ -133,7 +133,7 @@ openepd/model/validation/quantity.py,sha256=UP6x2nUj1nP7G8e2rpi-HigHx9rwKeCuIDh_
133
133
  openepd/model/versioning.py,sha256=R_zm6rCrgF3vlJQYbpyWhirdS_Oek16cv_mvZmpuE8I,4473
134
134
  openepd/patch_pydantic.py,sha256=xrkzblatmU9HBzukWkp1cPq9ZSuohoz1p0pQqVKSlKs,4122
135
135
  openepd/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
- openepd-6.0.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
137
- openepd-6.0.1.dist-info/METADATA,sha256=3JfGfzrMlQ1wyxIDYQTZ-l1CDo8nruSGoQQCj7m-shc,8996
138
- openepd-6.0.1.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
139
- openepd-6.0.1.dist-info/RECORD,,
136
+ openepd-6.2.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
137
+ openepd-6.2.0.dist-info/METADATA,sha256=f6kiHW5bMVEqEfQFVfPhLlKJDSKQcRMmkuIqZ1GiaKY,8996
138
+ openepd-6.2.0.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
139
+ openepd-6.2.0.dist-info/RECORD,,