datasette / datasette-extract

Import unstructured data (text and images) into structured tables
Apache License 2.0
143 stars 3 forks source link

Permissions #7

Closed simonw closed 6 months ago

simonw commented 7 months ago

At a minimum can bootstrap off the existing create-table and insert-rows permissions in Datasette 1.0.

simonw commented 6 months ago

I'm going to use a custom datasette-extract permission for this - it costs money to run the GPT-4 API so having a separate permission makes sense.

simonw commented 6 months ago

I'm going to require both create-table and insert-rows as well, otherwise installing this plugin might accidentally give users a backdoor way to create tables that they did not have before.

simonw commented 6 months ago

These need to be taken into account by the code that shows the menu items too.