Paste data to create tables in Datasette
Project description
datasette-paste
Paste data to create tables in Datasette
This plugin is no longer being developed. It has been replaced by datasette-import.
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-paste
Usage
This plugin adds a database action item called "Create table with pasted data".
This action is available to users with the create-table
permission.
It links to a page that allows users to paste in CSV, TSV or JSON data, and then use that to create and populate a new table in Datasette.
CSV and TSV data must have headers on the first row.
JSON data must be an array of objects with the same keys, or a container object object where one of the keys is an array of objects.
Credits
The CSV and TSV parsing is performed using Papa Parse, an MIT licensed JavaScript library that is bundled with this plugin.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd datasette-paste
python3 -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
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-paste-0.1a5.tar.gz
.
File metadata
- Download URL: datasette-paste-0.1a5.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4309c00a13b69fa6958b0f2bd4b753983e7f9dfe7c54dc59d639c0cc18dc356f |
|
MD5 | 3b64d98256708427f33655f206b30d20 |
|
BLAKE2b-256 | ef212d66dbbf37b7db2c8ce7fd61ad428ec87f350ced4102e84bb254e5b274e6 |
File details
Details for the file datasette_paste-0.1a5-py3-none-any.whl
.
File metadata
- Download URL: datasette_paste-0.1a5-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d09a6922d9bc278c27be3f468cecf8aa40d35dbd2b37b9ef91b205bb1edc1ce |
|
MD5 | c898638e2cdb8ea4540f4f098dae6525 |
|
BLAKE2b-256 | e7a062b2f11f2b42fdb442cdb5276c362135c64f327141eabd882fca44e20005 |