Skip to main content

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

Tests

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:

  1. Activate your CKAN virtual environment, for example:

    . /usr/lib/ckan/default/bin/activate
    
  2. Install the extension from PyPI:

    pip install ckanext-resource-docs
    
  3. Add resource_docs to the ckan.plugins setting in your CKAN config file (usually located at /etc/ckan/default/ckan.ini).

  4. 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

AGPL

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

ckanext_resource_docs-0.1.3.tar.gz (327.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ckanext_resource_docs-0.1.3-py3-none-any.whl (331.4 kB view details)

Uploaded Python 3

File details

Details for the file ckanext_resource_docs-0.1.3.tar.gz.

File metadata

  • Download URL: ckanext_resource_docs-0.1.3.tar.gz
  • Upload date:
  • Size: 327.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.4

File hashes

Hashes for ckanext_resource_docs-0.1.3.tar.gz
Algorithm Hash digest
SHA256 24342997000b412c61d7f6bc7dbc0feaf1916a77f2dd4e60f9658cad73a40e29
MD5 f23d1f79a85331807b58506685e3224f
BLAKE2b-256 b8a4c67c34ca1446fa26a0b7bd8d94cc23fdf04a089e4629c3823ca39211ec2e

See more details on using hashes here.

File details

Details for the file ckanext_resource_docs-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_resource_docs-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9379db488085ca56ee5db89cd39b45d1c258f794675bc0e2c4eeaa16f47470c2
MD5 f851fefb825b9346f82490c00a071795
BLAKE2b-256 a7ba66ebe5aa09a1f15cc68c69a62823ecc1730d0c3a043db2829502c0cfee4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page