Command-line tools for interacting with PSI DHIS2 instances
Project description
# hnqis-cli [![Version](https://img.shields.io/pypi/v/hnqis-cli.svg)](https://pypi.python.org/pypi/hnqis-cli)
> Command-line scripts for HNQIS
Program to Organisation Unit Assigner via CSV: hnqis-program-orgunit –help
Attribute setting via CSV: hnqis-attribute-setting –help
Health area indicators update (with program indicators) hnqis-indicator-update –help
User messages via CSV: hnqis-user-message –help
Scan (and fix) Events where Overall Score != _Overall Score: hnqis-scan-mismatches –help
### Installation / updating
Installation with [pip](https://pip.pypa.io/en/stable/installing) (python package manager, see if it is installed: pip -V)
pip install hnqis-cli or sudo -H pip install hnqis-cli
Upgrade with pip install hnqis-cli -U
### Usage
You can either pass arguments for a server / username / password or it make it read from a dish.json file as described in [baosystems/dish2](https://github.com/baosystems/dish2#configuration).
Get help on using arguments, e.g.`hnqis-program-orgunit –help`
In the help text, [-v] means an optional argument
Logs to a file: hnqis-cli.log
—
#### Install from source
` git clone --depth=1 https://github.com/psi-mis/hnqis-cli cd hnqis-cli python setup.py install `
#### Source code disclaimer - The src/__init__.py file was copied/modified from [dhis2-pocket-knife](https://github.com/davidhuser/dhis2-pocket-knife) (MIT licence)
#### Contribute
Fork repo
Install Dev requirements via pip install -r requirements-dev.txt
Write a script in src folder, add it to setup.py’s entry_points
Write a test in tests, run all tests with python setup.py test
Open a Pull Request
After merging, we do python setup.py publish (increase src/__version__.py first) to publish to PyPI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for hnqis_cli-0.0.18-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a77e586ee757a319c55a381e1d3e0a29b1a25785d21ecfad4ee401b7711f08ab |
|
MD5 | e547998e5c81667ac27cca3be2088cde |
|
BLAKE2b-256 | 6687c4d7fe29d4564f4fc1faeaa4262b03b83c222b5782a1ac9b79ebf1587537 |