Skip to main content

Use sqlite-chronicle with tables in Datasette

Project description

datasette-chronicle

PyPI Changelog Tests License

Use sqlite-chronicle with tables in Datasette

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-chronicle

Usage

Once installed, users with the enable-chronicle and disable-chronicle permissions (granted to the root user by default) will have access to new table action menu options for enabling and disabling row version tracking for a table.

Tables that have had row version tracking enabled will now support a new ?_since=X query string parameter on the table page, which will filter for just rows that have been inserted or updated since the specified chronicle version.

See the sqlite-chronicle documentation for more details on what this is and how it works.

Development

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

cd datasette-chronicle
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

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

datasette_chronicle-0.3.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

datasette_chronicle-0.3-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file datasette_chronicle-0.3.tar.gz.

File metadata

  • Download URL: datasette_chronicle-0.3.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for datasette_chronicle-0.3.tar.gz
Algorithm Hash digest
SHA256 faea74ec494fd6cf5b3db770525954b4b5f09fd1359318ff40e7a1f501ced04e
MD5 dc466e1435a30cb7ed88b47824375ece
BLAKE2b-256 ff123147db81397233101a33eb05d4e3b9edcf379be3e32fe23d40ac3f7192b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_chronicle-0.3.tar.gz:

Publisher: publish.yml on datasette/datasette-chronicle

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

File details

Details for the file datasette_chronicle-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for datasette_chronicle-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 82a2c3209753c5502259d2dc54959e48465f75ed21b877ffc94ad38d61e8fb26
MD5 33adcdd120a66a4126d88cc2af200e91
BLAKE2b-256 25f38a11e18d8254872ca67fb21ea5fa0b6cd1d00276941c4068ae643d79f537

See more details on using hashes here.

Provenance

The following attestation bundles were made for datasette_chronicle-0.3-py3-none-any.whl:

Publisher: publish.yml on datasette/datasette-chronicle

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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page