Mesnage-Org / pgfinder

Peptidoglycan MS1 Analysis Tool
https://mesnage-org.github.io/pgfinder
GNU Lesser General Public License v3.0
4 stars 2 forks source link

Add Pyodide runtime caching? #235

Open TheLostLambda opened 11 months ago

TheLostLambda commented 11 months ago

Check the PGFinder package version

/home/tll > curl https://pypi.org/pypi/pgfinder/json | from json | get info.version            07/26/2023 11:37:34 PM
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 13668  100 13668    0     0   117k      0 --:--:-- --:--:-- --:--:--  119k
0.0.3

then clear the cache if the cached version is older!

Otherwise find a way to save the whole loaded Pyodide runtime to local storage like JupyterLite manages?

TheLostLambda commented 11 months ago

Oh, and the point is that this should make startup instantaneous after first load until a new version of PGFinder is released — makes things even quicker!

TheLostLambda commented 11 months ago

Maybe allow for PGFinder version selection: https://github.com/Mesnage-Org/pgfinder/pull/184