Code Monkey home page Code Monkey logo

twdhcli's Introduction

twdhcli

     __               ____         ___ 
    / /__      ______/ / /_  _____/ (_)
   / __/ | /| / / __  / __ \/ ___/ / / 
  / /_ | |/ |/ / /_/ / / / / /__/ / /  
  \__/ |__/|__/\__,_/_/ /_/\___/_/_/   

Python script for running TWDH-specific maintenance commands

Requires: Python 3.8

Installation:

Linux, Mac, Windows Powershell:

cd /usr/lib/ckan
python3 -m venv twdhclienv
. twdhclienv/bin/activate
cd twdhclienv
git clone [email protected]:twdbben/twdhcli.git
cd twdhcli
pip install -r requirements.txt

Usage:

Linux, Mac, Windows Powershell:

cd /usr/lib/ckan
. twdhclienv/bin/activate
cd twdhclienv/twdhcli
python twdhcli.py --config ckan.ini

Command line parameters:

python twdhcli.py --help
Usage: twdhcli.py [OPTIONS]

Run TWDH-specific maintenance commands

Options:
  --host TEXT          TWDH CKAN host.  [required]
  --apikey TEXT        TWDH CKAN api key to use.  [required]
  --test-run           Show what would change but don't make any changes.
  --verbose            Show more information while processing.
  --debug              Show debugging messages.
  --logfile PATH       The full path of the main log file.  [default: ./twdhcli.log]
  --config FILE        Read configuration from FILE.
  --version            Show the version and exit.
  --help               Show this message and exit.

Commands:
  update-dates  Update dates on datasets where update_type == 'automatic'

Note that parameters are parsed and processed in priority order - through environment variables, a config file, or through the command line interface.

Environment variables should be all caps and prefixed with TWDHCLI_, for example:

export TWDHCLI_APIKEY="MYCKANAPIKEY"
export TWDHCLI_HOST="https://ckan.example.com"

twdhcli's People

Contributors

ctrepka avatar twdbben avatar

Watchers

 avatar  avatar

Forkers

ctrepka

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.