Extension Cdcmainlib


Extension Basics

Title
Cdcmainlib
Name
ckanext-cdcmainlib
Type
Public extension
Description
The ckan extension conserves lots of main libraries for Taiwan CDC open data portal.
CKAN versions
Download-Url (zip)
Last commit
8 years ago (2017-11-28 05:42:25)
Url to repo
Category
Cloud Infrastructure & Storage


Background Infos

Description (long)
Show details

.. You should enable this project on travis-ci.org and coveralls.io to make these badges work. The necessary Travis and Coverage config files have been generated for you.

.. image:: https://travis-ci.org/jiankaiwang/ckanext-cdcmainlib.svg?branch=master :target: https://travis-ci.org/jiankaiwang/ckanext-cdcmainlib

=============

ckanext-cdcmainlib

The extension is the base library for all ckanexts on TCDC open data portal.


Requirements

  • Developed on CKAN 2.5.x
  • Require external packages
    • psycopg2 : https://pypi.python.org/pypi/psycopg2
    • py2psql : https://github.com/jiankaiwang/seed/blob/master/python/py2psql.py

Installation

To install ckanext-cdcmainlib:

  1. Activate your CKAN virtual environment, for example::

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

  2. Clone the ckanext-cdcmainlib from github, for example::

    cd /usr/lib/ckan/default/src/

    git clone https://github.com/jiankaiwang/ckanext-cdcmainlib.git

  3. Install the ckanext-cdcmainlib Python package into your virtual environment::

    cd /usr/lib/ckan/default/src/ckanext-cdcmainlib

    pip install .

  4. Add cdcmainlib to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  5. Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu::

    sudo service apache2 reload

    If you’ve deployed CKAN with uwsgi::

    uwsgi –ini-paste /etc/ckan/default/production.ini

    If you’ve create a ckan.service::

    sudo systemctl restart ckan.service


Config Settings

Make sure adding cdcmainlib to the ckan.plugins. For example::

ckan.plugins = cdcmainlib

postgresql url to query the database information::

ckan.cdcmainlib.psqlUrl = postgresql://(dbuser):(dbpass)@(dbhost)/(dbname)

Development Installation

T

Version
Version release date
(not set)
Contact name
Jian-Kai Wang
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
cdcmainlibpostgresql url to query the database information
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions