I think the ultimate version in such use case would be carefully wire-up the baremetal one with ad-hoc in-mem-disk or tempdir :), this could be a future backend of py-pglite(planned in v2).
For now, it's more accessible for me to hack it in hours and it works.
It might be more interesting to try and get the wasm running directly within Python so you don't need a subprocess and all the coordination involved with that.
laurencerowe|8 months ago