minimalistic example of Python ( Pyodide ) in browser interaction
with dom and ifc model via ifcjs Javascript library.
- install requirements into virtualenv
- start server via
uvicorn main:app --host 127.0.0.1 --port 8888 - open in browser:
http://127.0.0.1:8888 - load an ifc file with
Choose filebutton - paste demo code from pyodide_repl_paste.py to repl and run it
- see IfcSpace data (if available in ifc model) in console and on page
- interact with ifc content from pyodide repl...