SwissOpenEM / ScopeMArchiver

0 stars 0 forks source link

[TB 4h]: Run Python Metadata Extractor in the javascript frontend #36

Closed phwissmann closed 3 months ago

phwissmann commented 3 months ago

Based on discussion here

https://psich.atlassian.net/wiki/spaces/OpenEM/pages/46923783/2024-03-19+Architecture+meeting

and the different identified use cases, one option is to run the metadata extractor in the browser.

Considerations:

Candidates:

phwissmann commented 3 months ago
sbliven commented 3 months ago

Packaging would presumably be done with PyInstaller.

File access is absolutely critical. The long load times for pyscript/pyodide is probably acceptable, but if they incur significant overhead on file parsing than that would be a blocker.

sbliven commented 3 months ago

I tried out file access from pyscript in https://github.com/SciCatProject/pyscript-fs-benchmark. It is only supported in Chrome/Edge, and even there you have to click through two security warnings. However it does work and reading is fast (at least after the loading and file mounting steps).