zepben.ewb 1.1.0b7__py3-none-any.whl → 1.1.0b8__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.
- zepben/ewb/database/sqlite/common/base_database_reader.py +7 -3
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b8.dist-info}/METADATA +1 -1
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b8.dist-info}/RECORD +6 -6
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b8.dist-info}/WHEEL +0 -0
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b8.dist-info}/licenses/LICENSE +0 -0
- {zepben_ewb-1.1.0b7.dist-info → zepben_ewb-1.1.0b8.dist-info}/top_level.txt +0 -0
|
@@ -84,16 +84,20 @@ class BaseDatabaseReader(ABC):
|
|
|
84
84
|
|
|
85
85
|
return True
|
|
86
86
|
|
|
87
|
-
async def load(self) -> bool:
|
|
87
|
+
async def load(self, perform_after_read_processing: bool = True) -> bool:
|
|
88
88
|
"""
|
|
89
|
-
|
|
89
|
+
Read the database.
|
|
90
|
+
|
|
91
|
+
:param perform_after_read_processing: An optional "opt-out" control for performing the "after read processing".
|
|
92
|
+
|
|
93
|
+
:return: `True` if the database was successfully read, otherwise `False`.
|
|
90
94
|
"""
|
|
91
95
|
try:
|
|
92
96
|
if self._has_been_used:
|
|
93
97
|
raise ValueError("You can only use the database reader once.")
|
|
94
98
|
self._has_been_used = True
|
|
95
99
|
|
|
96
|
-
return self._pre_load() and self._load_from_readers() and await self._post_load()
|
|
100
|
+
return self._pre_load() and self._load_from_readers() and ((not perform_after_read_processing) or await self._post_load())
|
|
97
101
|
except Exception as e:
|
|
98
102
|
self._logger.exception(f"Unable to load database: {e}")
|
|
99
103
|
return False
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: zepben.ewb
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.0b8
|
|
4
4
|
Summary: Python SDK for interacting with the Energy Workbench platform
|
|
5
5
|
Author-email: Kurt Greaves <kurt.greaves@zepben.com>, Max Chesterfield <max.chesterfield@zepben.com>
|
|
6
6
|
License-Expression: MPL-2.0
|
|
@@ -23,7 +23,7 @@ zepben/ewb/database/sqlite/common/base_cim_reader.py,sha256=RmJfeKtmvANUcam_EAVM
|
|
|
23
23
|
zepben/ewb/database/sqlite/common/base_cim_writer.py,sha256=sPYhkLlpyFt-i0B4UST2EF42i87N0V3Cb7XVaeL-WIU,8021
|
|
24
24
|
zepben/ewb/database/sqlite/common/base_collection_reader.py,sha256=yuOSWaztkJmlarCRcHtZslzYOg9UeVkNwjtuJLI6XCA,3755
|
|
25
25
|
zepben/ewb/database/sqlite/common/base_collection_writer.py,sha256=btq5hm57KnL3N4nUCoTLSstamJhFZcK8PM4WsnErm1g,2622
|
|
26
|
-
zepben/ewb/database/sqlite/common/base_database_reader.py,sha256=
|
|
26
|
+
zepben/ewb/database/sqlite/common/base_database_reader.py,sha256=q13wG7fZBuxo0UBuDrCPJ2ke0fGTt6Ap5CifjtF5new,5213
|
|
27
27
|
zepben/ewb/database/sqlite/common/base_database_tables.py,sha256=Bu-eBNs4VQENhdZiQt1o9oB2chXhm6CUrsbSNkcEwBE,5589
|
|
28
28
|
zepben/ewb/database/sqlite/common/base_database_writer.py,sha256=GStTD4J6F3PlbI1arInqwdazQqngPEaFsItzbzvj3I8,7076
|
|
29
29
|
zepben/ewb/database/sqlite/common/base_entry_writer.py,sha256=c1u1OjFKw9aB0L6kLTfoHbuKORrYYg83geBOXdUElZY,1278
|
|
@@ -635,8 +635,8 @@ zepben/ewb/streaming/mutations/update_network_state_client.py,sha256=e0Oma5PRT8m
|
|
|
635
635
|
zepben/ewb/streaming/mutations/update_network_state_service.py,sha256=irR-TO67QXRyBmK8PU8SzM31NKSSefZt_nQGHi5IhT8,3260
|
|
636
636
|
zepben/ewb/testing/__init__.py,sha256=waADXEvfUG9wAN4STx5uIUHOv0UnpZLH2qU1LXgaDBc,243
|
|
637
637
|
zepben/ewb/testing/test_network_builder.py,sha256=KG0o2ZHUswx3xClu-JnLs_pYIYbQ5jjtvtyZ7LI6IZ8,38092
|
|
638
|
-
zepben_ewb-1.1.
|
|
639
|
-
zepben_ewb-1.1.
|
|
640
|
-
zepben_ewb-1.1.
|
|
641
|
-
zepben_ewb-1.1.
|
|
642
|
-
zepben_ewb-1.1.
|
|
638
|
+
zepben_ewb-1.1.0b8.dist-info/licenses/LICENSE,sha256=aAHD66h6PQIETpkJDvg5yEObyFvXUED8u7S8dlh6K0Y,16725
|
|
639
|
+
zepben_ewb-1.1.0b8.dist-info/METADATA,sha256=5m_tMCXhSYN37_Zdv68CijtoLMxIcVvqr_eqbkOMx4o,3232
|
|
640
|
+
zepben_ewb-1.1.0b8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
641
|
+
zepben_ewb-1.1.0b8.dist-info/top_level.txt,sha256=eVLDJiO6FGjL_Z7KdmFE-R8uf1Q07aaVLGe9Ee4kmBw,7
|
|
642
|
+
zepben_ewb-1.1.0b8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|