Skip to main content

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

Download files

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

Source Distribution

datasette-verify-0.1.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

datasette_verify-0.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file datasette-verify-0.1.tar.gz.

File metadata

  • Download URL: datasette-verify-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for datasette-verify-0.1.tar.gz
Algorithm Hash digest
SHA256 8496c3b9cda158a19788f5bad446b310a20e5d9cfddd90f9e2452450ee0f4530
MD5 c4cae6a969c52062fc293da28ad3b6ec
BLAKE2b-256 39422bd0bd3816c3f55f4602f4e064b93d7796a977fe3855cdbfdc63dc190f2f

See more details on using hashes here.

File details

Details for the file datasette_verify-0.1-py3-none-any.whl.

File metadata

  • Download URL: datasette_verify-0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.7.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for datasette_verify-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ee4202e0a71d698d9eed48f9009a1473033a29ee4ea10fa859de34066ab8cfb9
MD5 f79b1a00b12da55e1a51604e35d922bc
BLAKE2b-256 55e0327dc4b2841d0714e4262cea412952787cd90e0b3d8e574ca01a319639c5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

2 files

Supported by

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