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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a82142fe4a68dd6b824692f66b2b275bb45adf5df22158009a2ff1266d48e75 |
|
MD5 | b4957325ded08dcbaa9bb198b1a2a6d0 |
|
BLAKE2b-256 | ca1f326abc7a2f528c0bea2f9f88f2724006167b0739047064059d95d5fb5854 |
File details
Details for the file datasette_datatable-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: datasette_datatable-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8912816bda1d46e9d983dc0231072840aaa15c94ec981984cfa3839cfdb872df |
|
MD5 | 2778b78ede56328553cc7fd2969daab1 |
|
BLAKE2b-256 | c905133acac45f6e7f83753978600f5c9a7574eab7ae80f34daf0b4cac4d886d |