Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Command-line tools for interacting with DHIS2 REST API

Project description

pip version Downloads Travis CI build status Windows EXE build status PyPI - Python Version

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)


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

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.

Files for dhis2-pocket-knife, version 0.35.5
Filename, size File type Python version Upload date Hashes
Filename, size dhis2_pocket_knife-0.35.5-py2.py3-none-any.whl (22.9 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dhis2-pocket-knife-0.35.5.tar.gz (24.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page