Skip to main content

A python package to communicate with mirth connects client api.

Project description

mirthpy

Basic python api for Mirth Connect

NOTE: This api only has Channels, Code Templates, Events, and Users built in. You should still be able to get to the rest, you'll just need to use the ElementTree to navigate.

Installation

Use the package manager pip to install mirthpy.

pip install mirthpy

Setup

Config file must match the following:

{
    "instanceName": "{instance IP or DNS Name}",
    "credentials": {
        "username": "{username}", 
        "password": "{password}"
    }
}

Usage

import json
import mirthpy

config = json.load(open('config.json'))

service = MirthService(config)
service.open()

# Get a list of channels
channels = service.getChannels({"channelId":"3bb08639-7725-4b1b-a2ac-13687101fe9b"}) 

for channel in channels:
    print(f"{channel.name} - {channel.revision}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mirthpy-0.1.3.tar.gz (11.0 kB view details)

Uploaded Source

File details

Details for the file mirthpy-0.1.3.tar.gz.

File metadata

  • Download URL: mirthpy-0.1.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for mirthpy-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b7c993a9212dca53886469aec7540cf788f1f7921addd6ca627a2e119ed03c71
MD5 675c8b047fc5513961932ac44e050fd1
BLAKE2b-256 571d90f86d53b8c65d8562c1c9bfa20b2a30234f865f00070d430bb650446042

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page