mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
Implement streaming scan through file and use in rocksdb serializer and python
This commit is contained in:
@@ -292,6 +292,13 @@ def guess_format(path: Path) -> Union[str, None]:
|
||||
return None
|
||||
|
||||
|
||||
def stream2(path: Union[Path, str]):
|
||||
streamer = ifcopenshell_wrapper.InstanceStreamer(str(path))
|
||||
while streamer:
|
||||
if inst := streamer.read_instance_py():
|
||||
yield inst
|
||||
|
||||
|
||||
version_core = ifcopenshell_wrapper.version()
|
||||
__version__ = version = "0.0.0"
|
||||
get_log = ifcopenshell_wrapper.get_log
|
||||
|
||||
Reference in New Issue
Block a user