A CKAN extension that lets you attach a flexible, schema-free data dictionary (“resource documentation”) to any resource, not just Datastore-backed ones.
Project description
A CKAN extension that lets you attach a flexible, schema-free data dictionary (resource documentation) to any resource — not just those backed by the Datastore. It supports custom fields via extensions, reuses CKAN’s existing data dictionary UI, and displays documentation directly on resource pages.
New in the latest version: you can now define a validation schema for each resource’s documentation individually, using JSON Schema Draft 2020-12. This allows you to optionally enforce structure and constraints while still keeping the flexibility of a free-form data dictionary.
You can read the official specification for JSON Schema Draft 2020-12 here.
Requirements
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.9 and earlier | no |
| 2.10+ | yes |
Installation
To install ckanext-resource-docs:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate -
Install the extension from PyPI:
pip install ckanext-resource-docs
-
Add
resource_docsto theckan.pluginssetting in your CKAN config file (usually located at/etc/ckan/default/ckan.ini). -
Restart CKAN. For example, if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
None at present
Developer installation
To install ckanext-resource-docs for development, activate your CKAN virtualenv and do:
git clone https://github.com/DataShades/ckanext-resource-docs.git
cd ckanext-resource-docs
pip install -e .
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ckanext_resource_docs-0.1.2.tar.gz.
File metadata
- Download URL: ckanext_resource_docs-0.1.2.tar.gz
- Upload date:
- Size: 332.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ded6990c2fe0984ded75e4ced0c80ae90295ec3612678547fab1d4fe71ecb2f8
|
|
| MD5 |
3480d78af4ce2ca04b73210cf8119d0c
|
|
| BLAKE2b-256 |
db4e2208e8b22fcf9af002ce46040d40bcefff6e0c5c7fc778ff4feafa360e5e
|
File details
Details for the file ckanext_resource_docs-0.1.2-py3-none-any.whl.
File metadata
- Download URL: ckanext_resource_docs-0.1.2-py3-none-any.whl
- Upload date:
- Size: 335.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd0b47ae1cb767fb27a79005ed8d773a6f29eda2aec91f1a07e6bab266760861
|
|
| MD5 |
780cefa9024e3da29461fb4f55e4a049
|
|
| BLAKE2b-256 |
b767db0e944eede96657e8618c3090ed16fbb44aa68ca99a18272479ba896236
|