Skip to main content

Tools for importing data into Datasette

Project description

datasette-import

PyPI Changelog Tests License

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


Download files

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

Source Distribution

datasette_import-0.1a6.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

datasette_import-0.1a6-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

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

Hashes for datasette_import-0.1a6.tar.gz
Algorithm Hash digest
SHA256 0654b2311e6859bd700f6ad1d8fa5413985e9450edbefc671e91216091247dd8
MD5 0e26b689f18c205f607f42b63871e565
BLAKE2b-256 cc54f1c52254a9ec10ad3842dbee8e792f62860961d46e3f6ad4fc79d08565f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_import-0.1a6.tar.gz:

Publisher: publish.yml on datasette/datasette-import

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file datasette_import-0.1a6-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_import-0.1a6-py3-none-any.whl
Algorithm Hash digest
SHA256 ad8dbe8ad3d67c30bdd2fc76de0cbdb9adb5555b314ec8eb225405f4f6d93c5b
MD5 0c9ba074e0fcf7b81dfd4927f84a2e2f
BLAKE2b-256 a570436d38557c86ef0db486bd80a128ed5e61fa6ef802b5836798a63e0ff999

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_import-0.1a6-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-import

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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