polydbms / sheetreader-duckdb

MIT License
38 stars 3 forks source link

Load extension in Python API #16

Closed freddie-freeloader closed 4 months ago

freddie-freeloader commented 5 months ago

We might need to build the Python library ourselves, to load our unsigned extension:

https://github.com/duckdb/duckdb/tree/main/tools/pythonpkg

con = duckdb.connect(':memory:', config={'allow_unsigned_extensions' : 'true'}) con.install_extension("../build/release/extension/sheetreader/sheetreader.duckdb_extension") con.load_extension("sheetreader")

freddie-freeloader commented 4 months ago

We found a workaround for the metadata mismatch: #15