Tools for importing data into Datasette
Project description
datasette-import
Tools for importing data into Datasette
Installation
Install this plugin in the same environment as Datasette.
datasette install datasette-import
Usage
This plugin adds a database action item called "Create table with imported data".
This action is available to users with the create-table permission.
It links to a page that allows users to upload files or 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-import
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datasette_import-0.1a6.tar.gz.
File metadata
- Download URL: datasette_import-0.1a6.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0654b2311e6859bd700f6ad1d8fa5413985e9450edbefc671e91216091247dd8
|
|
| MD5 |
0e26b689f18c205f607f42b63871e565
|
|
| BLAKE2b-256 |
cc54f1c52254a9ec10ad3842dbee8e792f62860961d46e3f6ad4fc79d08565f7
|
Provenance
The following attestation bundles were made for datasette_import-0.1a6.tar.gz:
Publisher:
publish.yml on datasette/datasette-import
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_import-0.1a6.tar.gz -
Subject digest:
0654b2311e6859bd700f6ad1d8fa5413985e9450edbefc671e91216091247dd8 - Sigstore transparency entry: 628748300
- Sigstore integration time:
-
Permalink:
datasette/datasette-import@5178a7a57ad80b263c6d92ca5e010271ceae1e10 -
Branch / Tag:
refs/tags/0.1a6 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5178a7a57ad80b263c6d92ca5e010271ceae1e10 -
Trigger Event:
release
-
Statement type:
File details
Details for the file datasette_import-0.1a6-py3-none-any.whl.
File metadata
- Download URL: datasette_import-0.1a6-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad8dbe8ad3d67c30bdd2fc76de0cbdb9adb5555b314ec8eb225405f4f6d93c5b
|
|
| MD5 |
0c9ba074e0fcf7b81dfd4927f84a2e2f
|
|
| BLAKE2b-256 |
a570436d38557c86ef0db486bd80a128ed5e61fa6ef802b5836798a63e0ff999
|
Provenance
The following attestation bundles were made for datasette_import-0.1a6-py3-none-any.whl:
Publisher:
publish.yml on datasette/datasette-import
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datasette_import-0.1a6-py3-none-any.whl -
Subject digest:
ad8dbe8ad3d67c30bdd2fc76de0cbdb9adb5555b314ec8eb225405f4f6d93c5b - Sigstore transparency entry: 628748302
- Sigstore integration time:
-
Permalink:
datasette/datasette-import@5178a7a57ad80b263c6d92ca5e010271ceae1e10 -
Branch / Tag:
refs/tags/0.1a6 - Owner: https://github.com/datasette
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@5178a7a57ad80b263c6d92ca5e010271ceae1e10 -
Trigger Event:
release
-
Statement type: