simonw / dclient

A client CLI utility for Datasette instances
Apache License 2.0
11 stars 0 forks source link

Python library, targetted at Jupyter/Pandas #17

Open simonw opened 1 year ago

simonw commented 1 year ago

It should be trivial to do something like this in a Jupyter notebook:

%pip install dclient
from dclient import RemoteDatabase
db = RemoteDatabase("https://simon.datasette.cloud/data", token="...")
db.insert_dataframe(df, table="my_dataframe")

API design still very much open to ideas.

simonw commented 1 year ago

Maybe this API design should imitate sqlite-utils as much as possible - though it will be a small subset of sqlite-utils since the Datasette Write API doesn't handle a lot of stuff that sqlite-utils can do.