Command-line tools for DHIS2.
- Mass sharing via filtering (docs)
- Download indicator definitions to CSV (docs)
- Download user information to CSV (docs)
- Set attribute values with a CSV (docs)
- Additional data integrity (docs)
- Post a CSS style sheet for the login page (docs)
- Import fake data for event programs and data sets (docs)
Note: Python 3.6+ is required.
The straightforward way is usually:
pip3 install dhis2-pocket-knife --user
If you are on Windows or run into issues, check the Installation instructions.
Scripts are invoked by running: dhis2-pk <script-name>
, for example:
dhis2-pk share --help
Check out the docs for more details regarding each script.
see Changelog.rst.
Under the hood it uses the DHIS2 API wrapper dhis2.py.