Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

datasette-events-db

PyPI Changelog Tests License

Log Datasette events to a database table

Installation

Install this plugin in the same environment as Datasette.

datasette install datasette-events-db

This plugin depends on Datasette 1.0a8 or higher.

Usage

Once installed, all Datasette events will be logged to a table called datasette_events. This table will be created in the private internal database, but can be moved to another database using the following plugin configuration option:

plugins:
  datasette-events-db:
    database: my_database

The table will be created when Datasette starts up, if it does not already exist.

Table schema

create table if not exists datasette_events (
    id integer primary key,
    event text,
    created text,
    actor_id text,
    database_name text,
    table_name text,
    properties text -- JSON other properties
)
  • event is the text name of the event, for example create-table
  • created is an ISO formatted UTC timestamp
  • actor_id will be populated with the ID of the responsible actor, or null if not available
  • database_name will be the database property recorded by the event, if present
  • table_name will be the table property recorded by the event, if present
  • properties will be a JSON object containing any other properties recorded by the event

Development

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

cd datasette-events-db
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

pip install -e '.[test]'

To run the tests:

pytest

Release files for datasette-events-db 0.1a2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for datasette-events-db 0.1a2
File Size Uploaded
datasette_events_db-0.1a2.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datasette-events-db 0.1a2
File Interpreter ABI Platform
datasette_events_db-0.1a2-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / datasette_events_db-0.1a2.tar.gz

Download URL datasette_events_db-0.1a2.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9f5643dc8805e94d011ae82748ba4f5b6b7a0ead080b2b69cb3c94b64fdc6686
BLAKE2b-256 checksum
How to use checksums
04c0b8cbbb10d82c43a9a738df1eeb78e9cc8137a8d184f784b940465d2f2e1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2025.

Transparency log

Release files / datasette_events_db-0.1a2-py3-none-any.whl

Download URL datasette_events_db-0.1a2-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43835c4655a0baed5fecc01cefce3ccd3f8362bea9e2b31adc464ad956c48bba
BLAKE2b-256 checksum
How to use checksums
460c57f9b2e2fdc3fae9b0fd34bcb5b8d548312747a7dedf5604ac548bcf2848
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 8, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1a2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page