pyscript.py has a bunch of unrelated logic in it, some of which should probably be private. There should be a pyscript package with an __init__.py and multiple submodules with related logic. There are several ways to do this, personally I like taring the package folder and then loading the tar file with fetch and pyodide.unpackArchive. But you could also use rollup.
pyscript.py has a bunch of unrelated logic in it, some of which should probably be private. There should be a pyscript package with an
__init__.pyand multiple submodules with related logic. There are several ways to do this, personally I liketaring the package folder and then loading the tar file withfetchandpyodide.unpackArchive. But you could also use rollup.