Skip to main content

Import Frictionless Data Datapackages into SQLite and generate Datasette metadata

Project description

datapackage-to-datasette

Run tests codecov PyPI Version License Python Compatibility Code style: black

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

datapackage_to_datasette-0.4.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

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

datapackage_to_datasette-0.4.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

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

Hashes for datapackage_to_datasette-0.4.1.tar.gz
Algorithm Hash digest
SHA256 c0c6f5024acabc40b4de03108d6fba161bc3265ed812ffa3727b81733773f5ec
MD5 cfc09887ba803d4e66aa04ed243d9926
BLAKE2b-256 2d072964395f8067ee753c8a4885ebdf12a632cc7c90aa3558818d20f27f4b30

See more details on using hashes here.

Provenance

The following attestation bundles were made for datapackage_to_datasette-0.4.1.tar.gz:

Publisher: publish.yml on chris48s/datapackage-to-datasette

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

File details

Details for the file datapackage_to_datasette-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for datapackage_to_datasette-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f37758c336b4ffee4cbef96b4f8199510d006e3cf1e971b4c9932c542c7c0632
MD5 cf2f4d866e16718a297f29879c5e1091
BLAKE2b-256 8482d04646c67ef1129d1c13db9f0e753af17ed3290892b30d2c7f9f2267d274

See more details on using hashes here.

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

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