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
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 datapackage_to_datasette-0.4.1.tar.gz.
File metadata
- Download URL: datapackage_to_datasette-0.4.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0c6f5024acabc40b4de03108d6fba161bc3265ed812ffa3727b81733773f5ec
|
|
| MD5 |
cfc09887ba803d4e66aa04ed243d9926
|
|
| BLAKE2b-256 |
2d072964395f8067ee753c8a4885ebdf12a632cc7c90aa3558818d20f27f4b30
|
Provenance
The following attestation bundles were made for datapackage_to_datasette-0.4.1.tar.gz:
Publisher:
publish.yml on chris48s/datapackage-to-datasette
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datapackage_to_datasette-0.4.1.tar.gz -
Subject digest:
c0c6f5024acabc40b4de03108d6fba161bc3265ed812ffa3727b81733773f5ec - Sigstore transparency entry: 630395961
- Sigstore integration time:
-
Permalink:
chris48s/datapackage-to-datasette@e8b753b35667728313fd94d67d7868e5b985b162 -
Branch / Tag:
refs/tags/0.4.1 - Owner: https://github.com/chris48s
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8b753b35667728313fd94d67d7868e5b985b162 -
Trigger Event:
create
-
Statement type:
File details
Details for the file datapackage_to_datasette-0.4.1-py3-none-any.whl.
File metadata
- Download URL: datapackage_to_datasette-0.4.1-py3-none-any.whl
- Upload date:
- Size: 4.8 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 |
f37758c336b4ffee4cbef96b4f8199510d006e3cf1e971b4c9932c542c7c0632
|
|
| MD5 |
cf2f4d866e16718a297f29879c5e1091
|
|
| BLAKE2b-256 |
8482d04646c67ef1129d1c13db9f0e753af17ed3290892b30d2c7f9f2267d274
|
Provenance
The following attestation bundles were made for datapackage_to_datasette-0.4.1-py3-none-any.whl:
Publisher:
publish.yml on chris48s/datapackage-to-datasette
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
datapackage_to_datasette-0.4.1-py3-none-any.whl -
Subject digest:
f37758c336b4ffee4cbef96b4f8199510d006e3cf1e971b4c9932c542c7c0632 - Sigstore transparency entry: 630395966
- Sigstore integration time:
-
Permalink:
chris48s/datapackage-to-datasette@e8b753b35667728313fd94d67d7868e5b985b162 -
Branch / Tag:
refs/tags/0.4.1 - Owner: https://github.com/chris48s
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8b753b35667728313fd94d67d7868e5b985b162 -
Trigger Event:
create
-
Statement type: