This release is a pre-release and may not be stable for production use.
datasette-events-db
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
)
eventis the text name of the event, for examplecreate-tablecreatedis an ISO formatted UTC timestampactor_idwill be populated with the ID of the responsible actor, ornullif not availabledatabase_namewill be thedatabaseproperty recorded by the event, if presenttable_namewill be thetableproperty recorded by the event, if presentpropertieswill 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)
| File | Size | Uploaded | |
|---|---|---|---|
| datasette_events_db-0.1a2.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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