Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

bcgov/ckanext-bcgov-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lifecycle:Retired

Join us on Slack

ckanext-bcgov-cli

This extension provides the cli customized features on the BC Data Catalogue, such as creating vocab or organizations via paster

Installation

  1. Activate virtual environment, e.g.

    $ . /usr/lib/ckan/default/bin/activate
    
  2. Install the extension. Switch to ckanext-bcgov-cli extension directory and run the following command:

    python setup.py develop
    
  3. Create default vocabularies

    cd ckanext-bcgov-cli/ckanext/bcgov/cli/scripts
    $ python create_vocabs.py
    

Note: The following data files in ckanext-bcgov-cli/ckanext/bcgov/cli/scripts/data is required:

    edc-vocabs.json
  1. Create organizations

    $ cd ckanext-bcgov-cli/ckanext/bcgov/cli/scripts
    $ python create_orgs.py
    

Note: The following data files in ckanext-bcgov/ckanext/bcgov/cli/scripts/data is required:

    org_suborg_sector_mapping_forEDC.csv


Original Repo Copyright 2018, Province of British Columbia.