Import Frictionless Data Datapackages into SQLite and generate Datasette metadata
Project description
datapackage-to-datasette
Import Frictionless Data Datapackages into SQLite and generate Datasette metadata.
Setup
pip install datapackage-to-datasette
Usage
On the console
Import a datapackage from a local file
datapackage-to-datasette mydatabase.db /path/to/datapackage.json metadata.json
or from a URL
datapackage-to-datasette mydatabase.db https://pkgstore.datahub.io/core/co2-ppm/10/datapackage.json metadata.json
If the datasette metadata file already exists, you can pass
--write-mode replace
or --write-mode merge
to overwrite
or merge with the existing datasette metadata file.
As a library
from datapackage_to_datasette import datapackage_to_datasette, DataImportError try: datapackage_to_datasette( 'mydatabase.db', '/path/to/datapackage.json', 'metadata.json', write_mode='replace' ) except DataImportError: raise
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.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size datapackage_to_datasette-0.1.0-py3-none-any.whl (4.8 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size datapackage-to-datasette-0.1.0.tar.gz (4.1 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for datapackage_to_datasette-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4474156d3e6f4c9a6c501c05a49283a79a6cadfc003952a04bb90ca3715d1a79 |
|
MD5 | 879dc7d5987da73d3fc56874b20c6731 |
|
BLAKE2-256 | 1d81272f0fbf639d91e71b467ed97a35b604429f9c1916bde843087f1e774f28 |
Close
Hashes for datapackage-to-datasette-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4265253fb0f0f0e50dda82046efb48412178d62906c4661648841f3cbbf9f705 |
|
MD5 | 41f6dc49c28e9739111ca1d7ab6bc0fa |
|
BLAKE2-256 | 87b0eadb8dca4c2518eb71c62c882afb6a5201d0c9948c874ca1e70ab1ef4010 |