No project description provided
Project description
ckanext-event-audit
This extension will capture and retain a comprehensive record of all changes within a CKAN app.
Read the documentation for a full user guide.
TODO:
- add config option to exclude result and payload fields from being stored
- allow to restrict a list of available repos (security concern)
- disable the admin interface by default (security concern)
- update
remove_events
method to allow removing events by date range - add a cli command to remove events by date range
Quick start
-
Install the extension from
PyPI
:pip install ckanext-event-audit
-
Enable the plugin in your CKAN configuration file (e.g.
ckan.ini
orproduction.ini
):ckan.plugins = ... event_audit ...
-
Run DB migrations. For CKAN 2.10+ we can run this command:
ckan db pending-migrations
CKAN 2.11+ allows us to run the following command to create the tables:
ckan db upgrade
-
Configure the extension up to your needs and you're ready to go. See the documentation for more details about the configuration options.
Developer installation
To install ckanext-event-audit for development, activate your CKAN virtualenv and do:
pip install -e '.[dev, xlsx]'
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ckanext_event_audit-1.0.0.tar.gz
.
File metadata
- Download URL: ckanext_event_audit-1.0.0.tar.gz
- Upload date:
- Size: 45.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98fb5389e9069a77cbdc06688f21002e64752681ff7fd7257c4ee54112b8710d |
|
MD5 | a822bd662c926e5e22ccbfa9145fa120 |
|
BLAKE2b-256 | 4f238c30be18325e252635f0a4ef67573e4203d155a7c5616d2bacec17cfc153 |
File details
Details for the file ckanext_event_audit-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: ckanext_event_audit-1.0.0-py3-none-any.whl
- Upload date:
- Size: 61.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5ce1c12c853f6190e7c8f10f158e2755ee9a4a76b3caa140e1f228cbc0f0e45 |
|
MD5 | 29c2375ed99665511c08b56f9ef1994b |
|
BLAKE2b-256 | fa8bbf78a01ea01fe3ab161509e30e97901792451d9f44154aed0225a46e9b08 |