Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make datasette-lite a Python package #65

Open
rclement opened this issue May 7, 2023 · 1 comment
Open

Make datasette-lite a Python package #65

rclement opened this issue May 7, 2023 · 1 comment

Comments

@rclement
Copy link
Contributor

rclement commented May 7, 2023

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:

  • datasette lite build --output dir: specify the output directory:
  • datasette lite build --install datasette-dashboards: pre-installing additional dependencies (without having to use the install query argument) by templating webworker.js to include additional micropip.install instructions

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

  • index.html
  • webworker.js
@rclement
Copy link
Contributor Author

rclement commented May 7, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant