GithubHelp home page GithubHelp logo

ckan_demo_datasets's Introduction

This repo contains demo datasets in the resources folder being used to create datasets on CKAN instances by running python script available in the script folder.

Running the script

  • The script is written in python3. So run the script
    python3 script.py
    
  • It is going to ask for CKAN_SITE_URL. Provide the site url with http:// and make sure no extra / are there at the end of the address. For example, enter the site address in format http://ckan:5000
  • Next it is going to ask for the API_KEY (API_KEY of a sys_admin ckan user) which must be provided.
  • Enter the name of organization you want to be added in small letters without spaces. For example test-org-1. After creating the org and adding the users and datasets to it will ask for the name of organization again. Enter the name of second organization you want to be added.
  • The script will create two users test_user_1 and test_user_2. Both the organizations are going to be owned (admin rights) by any one of the user.
  • One csv and one geojson is going to be added to both the organizations.

Rerunning the script

  • If you want to rerun the script. Make sure the previously added datasets and organizations by the script are deleted and purged. Then rerun the script.

ckan_demo_datasets's People

Contributors

muhammadismailshahzad avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.