Python library for interacting with openmrs api
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
openmrsapi
.travis.yml
LICENSE
README.md
setup.py

README.md

OpenMRS API Python Library

Build Status Coverage Status

A python library for interacting with OpenMRS API

Install

git clone https://github.com/isears/openmrsapi
cd openmrsapi
pip3 install .

Usage

Before using, setup the following environment variables based on your OpenMRS installation:

export OPENMRS_USERNAME=Admin
export OPENMRS_PASSWORD=Admin123
export OPENMRS_API_ENDPOINT=https://demo.openmrs.org/openmrs/ws/rest/v1/

Alternatively: source openmrsapi/tests/demo.env

Example:

import openmrsapi

users = openmrsapi.get('user')

for user in users:
    print(user['display'])