Skip to main content

Export Datasette records as a DataTable

Project description

datasette-datatable

Export Datasette records in a form that the DataTables library understands.

Installation

Install this plugin in the same environment as Datasette. Note that this plugin is built against the development version of datasette, not the one released on PyPi.

$ datasette install datasette-datatable

Usage

Having installed this plugin, every table and query will gain a new .datatable export link.

You can also construct these URLs directly: /dbname/tablename.datatable

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-datatable
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and tests:

pip install https://github.com/simonw/datasette/archive/refs/heads/main.zip
pip install -e '.[test]'

To run the tests:

pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

datasette_datatable-0.0.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

datasette_datatable-0.0.1-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file datasette_datatable-0.0.1.tar.gz.

File metadata

  • Download URL: datasette_datatable-0.0.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for datasette_datatable-0.0.1.tar.gz
Algorithm Hash digest
SHA256 0a82142fe4a68dd6b824692f66b2b275bb45adf5df22158009a2ff1266d48e75
MD5 b4957325ded08dcbaa9bb198b1a2a6d0
BLAKE2b-256 ca1f326abc7a2f528c0bea2f9f88f2724006167b0739047064059d95d5fb5854

See more details on using hashes here.

File details

Details for the file datasette_datatable-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_datatable-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8912816bda1d46e9d983dc0231072840aaa15c94ec981984cfa3839cfdb872df
MD5 2778b78ede56328553cc7fd2969daab1
BLAKE2b-256 c905133acac45f6e7f83753978600f5c9a7574eab7ae80f34daf0b4cac4d886d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page