Skip to main content

Verify that SQLite files can be opened using Datasette

Project description

datasette-verify

PyPI Changelog Tests License

Verify that SQLite files can be opened using Datasette

Installation

Install this plugin in the same environment as Datasette.

$ datasette install datasette-verify

This plugin depends on Datasette 0.59a2 or higher, as it uses the register_commands() plugin hook.

Usage

To confirm that files can be opened by Datasette, run the following:

datasette verify file1.db file2.db

You can pass one or more file paths.

The command will exit silently with a 0 exit code if the files are all valid SQLite databases that Datasette can open.

It will exit with a 1 exit code and display an error for the first file it finds that is not valid.

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd datasette-verify
python3 -mvenv venv
source venv/bin/activate

Or if you are using pipenv:

pipenv shell

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Files for datasette-verify, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size datasette_verify-0.1-py3-none-any.whl (2.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size datasette-verify-0.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page