Extension Datapackage Creator


Extension Basics

Title
Datapackage Creator
Name
ckanext-datapackage-creator
Type
Public extension
Description
The CKAN Data Package Creator extension enhances CKAN by integrating functionality from the frictio
CKAN versions
Download-Url (zip)
Last commit
2 years ago (2023-04-25 20:43:20)
Url to repo
Category
Visualization & Analytics


Background Infos

Description (long)
Show details

CKNEXT Data Package Creator

CKAN extension to use the fritioncless library

Table of Contents

Publish or Update Package to Pypi

  • Check the last version published on Pypi.
  • Update CHANGELOG.md file with a short review of what had been done.
  • Update setup.py file with the new version number.
  • Commit all the above changes with the new version number (one above that publish on Pypi). Example: git commit -am 'v0.1.1'.
  • Push the created commit to the online repository: Example: git push origin master.
  • Create a new tag with the new version number (same as used to commit last changes). Example: git tag v0.1.1 HEAD.
  • Push the new created tag to the online repository: Example: git push origin v0.1.1.
  • Publish on Pypi with make update-package.

Instalation

pip install ckanext-datapackage-creator

Configuration

Once installed, add the datapackage_creator plugin to the ckan.plugins configuration option in your INI file.

ckan.plugins = ... datapackage_creator

Datapackage Creator Configuration

Opening the file with vi editor

sudo vi /etc/ckan/default/datapackage_creator.json

The plugin allows you to configure which fields of the resource and package are mandatory and/or ‘readonly’, for this you just need to add a configuration in your INI file.

datapackage_creator = /path/to/datapackage_creator.json

We suggest that the file path would be /etc/ckan/default/datapackage_creator.json or in the same folder as ckan.ini file.

Configuration example file:

{
    "package": {
        "required": [],
        "readonly": []
    },
    "resource": {
        "required": [],
        "readonly": []
    },
    "token": ""
}

Mandatory possible package fields:

  • description
  • source
  • versio
Version
Version release date
(not set)
Contact name
Portal da Transparência do Estado de Minas Gerais
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
datapackage_creator
CKAN Settings (ckan.ini)
# ckan.plugins = ... datapackage_creator
DB migration to be executed
(not set)
<< back to Extensions