This release is a pre-release and may not be stable for production use.
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
Release files for datasette-paste 0.1a5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| datasette-paste-0.1a5.tar.gz | 18.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datasette_paste-0.1a5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.1 kB
Release files / datasette-paste-0.1a5.tar.gz
| Download URL | datasette-paste-0.1a5.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4309c00a13b69fa6958b0f2bd4b753983e7f9dfe7c54dc59d639c0cc18dc356f
|
|
BLAKE2b-256 checksum How to use checksums |
ef212d66dbbf37b7db2c8ce7fd61ad428ec87f350ced4102e84bb254e5b274e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / datasette_paste-0.1a5-py3-none-any.whl
| Download URL | datasette_paste-0.1a5-py3-none-any.whl |
|---|---|
| Size | 18.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d09a6922d9bc278c27be3f468cecf8aa40d35dbd2b37b9ef91b205bb1edc1ce
|
|
BLAKE2b-256 checksum How to use checksums |
e7a062b2f11f2b42fdb442cdb5276c362135c64f327141eabd882fca44e20005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|