duckdb-wasm icon indicating copy to clipboard operation
duckdb-wasm copied to clipboard

DuckDB in Pyodide?

Open aghasemi opened this issue 3 years ago • 3 comments

Hi,

May I ask please, if there has been an attempt to use the DuckDB Python package in Pyodide? Given that the native code is already ported, there shouldn't a lot if work remaining. No?

Many thanks Best

aghasemi avatar Aug 14 '22 16:08 aghasemi

Hey, there is quite a bit of work remaining depending on the feature set that you're asking for. If you'd be searching for a bare-bone duckdb instance without http filesystem, the missing pieces would be mostly porting over the python api to pyodide. But DuckDB-Wasm ships with a few more components to integrate with the browser apis. (E.g. something like SELECT * FROM 'http://foo' uses a browser-specific web filesystem and runs in a web worker for synchronous XHRs) This is significant effort to port since we'd have to interface with the DuckDB-Wasm API from pyodide.

ankoh avatar Aug 16 '22 09:08 ankoh

Very interested in this.

@ankoh Any work in progress I could check?

Is there a way I could contribute?

argenisleon avatar Oct 12 '22 14:10 argenisleon

Hello! Have a look here! https://github.com/pyodide/pyodide/pull/2961

There was also some discussion about this in our Discord in the show and tell section!

Alex-Monahan avatar Oct 12 '22 15:10 Alex-Monahan