I think it makes sense to separate the Python library as much as possible from this code. Since Pyodide works with wheels, we can separate the other library entirely and maybe just write a very short Python api that imports the appropriate functions from our library and makes the conversion to JS.
Outstanding question: how do we get this involved in an automatic build pipeline (so build wheel -> copy to CDN -> serve)
I think it makes sense to separate the Python library as much as possible from this code. Since Pyodide works with wheels, we can separate the other library entirely and maybe just write a very short Python api that imports the appropriate functions from our library and makes the conversion to JS.
Outstanding question: how do we get this involved in an automatic build pipeline (so build wheel -> copy to CDN -> serve)