Skip to content

Get Datasette compatible with Pyodide #1733

@simonw

Description

@simonw

I've already got this working as a prototype. Here are the changes I had to make:

  • Replace the two dependencies that don't publish pure Python wheels to PyPI: click-default-group and python-baseconv
  • Get Datasette to work without threading - which it turns out is exclusively used for database connections
  • Make the uvicorn dependency optional (only needed when Datasette runs in the CLI)

TODO:

Goal is to be able to do the following directly in https://pyodide.org/en/stable/console.html

import micropip
await micropip.install("datasette")
from datasette.app import Datasette
ds = Datasette()
await ds.client.get("/.json")

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions