simonw / datasette-lite

Datasette running in your browser using WebAssembly and Pyodide
https://lite.datasette.io
Apache License 2.0
329 stars 27 forks source link

Make datasette-lite a Python package #65

Open rclement opened 1 year ago

rclement commented 1 year ago

It would be nice for datasette-lite to be distributed as a Python package like jupyterlite in order to build a datasette-lite website distribution, instead of having to fork this repository. This could even be Datasette plugin, in the vein of datasette-publish-vercel, providing a command to build the static website.

For instance, a possible workflow:

  1. pip install datasette datasette-lite
  2. datasette lite build
  3. Deploy on static hosting

Some nice to have features that could be integrated with the build command:

The build command could then be responsible for generating at least the following files:

rclement commented 1 year ago

Having datasette-lite as a Python package to build a distribution could also be used for advanced use-cases.

For instance, embedding a Datasette-Lite distribution within an app or a static website (MkDocs/Sphinx/JupyterBook/Whatever). I'm doing this with MkDocs + JupyterLite and it works great. Would love to be able to do it with Datasette-Lite!