Skip to content

Make datasette-lite a Python packageΒ #65

@rclement

Description

@rclement

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions