Extension PowerView


Extension Basics

Title
PowerView
Name
ckanext-powerview
Type
Public extension
Description
Enables users to configure data sources to power views for one or more resources, providing an API for creating, updating, and managing power views.
CKAN versions
Download-Url (zip)
Last commit
5 years ago (2020-03-19 22:09:14)
Url to repo
Category
Visualization & Analytics


Background Infos

Description (long)
Show details

ckanext-powerview

Data source and configuration to power a view for one or more resources.

Requirements

Requires CKAN 2.3+

Installation

To install ckanext-powerview:

  1. Activate your CKAN virtual environment:

    . /usr/lib/ckan/default/bin/activate

  2. Install the ckanext-powerview Python package:

    pip install ckanext-powerview

  3. Install dependencies:

    pip install -r requirements.txt

  4. Create the database tables:

    paster --plugin=ckanext-powerview powerview init --config=production.ini

  5. Add powerview to the ckan.plugins setting in your CKAN config file.

  6. Restart CKAN.

Configuration Settings

# If True, all logged in users will be able to create, delete and update
# their own Powerviews. Default is False.
ckanext.powerview.allow_user_create = true

API

All actions in the PowerView extension are available in the CKAN Action API:

  • powerview_create — create a new powerview (sysadmins only)
  • powerview_update — update an existing powerview (sysadmins only)
  • powerview_delete — delete a powerview (sysadmins only)
  • powerview_show — show a powerview
  • powerview_resource_list — list resources in a powerview
  • powerview_add_resource — add a resource to an existing powerview
  • powerview_remove_resource — remove a resource from a powerview
  • powerview_list — list of powerviews available to user

License

AGPL-3.0

Version
0.1.0
Version release date
2020-03-19
Contact name
Brook Elgie
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Add ‘powerview’ to ckan.plugins. Create DB tables via paster command. Optionally set ckanext.powerview.allow_user_create = true.

Plugins to configure (ckan.ini)
powerview
CKAN Settings (ckan.ini)
# ckanext.powerview.allow_user_create = true
DB migration to be executed
paster --plugin=ckanext-powerview powerview init
<< back to Extensions