Skip to main content

python-mirth-client

PyPI Release Documentation Status

A basic async Python interface for Mirth Connect

Installation

pip install mirth-client

Usage example

Assuming running within IPython or as part of an async application with an event-loop set up.

from mirth_client import MirthAPI
from pprint import pprint

async with MirthAPI("https://mirth.domain.com/api") as api:
    await api.login("****", "****")

    # Check out list of channels
    for channel in await api.channels():
        metadata = await channel.get_info()
        print(f"ID: {metadata.id}")
        print(f"Name: {metadata.name}")
        print("")

    # Get stats for a channel
    s = await api.channel("3cdefad2-bf10-49ee-81c9-8ac6fd2fed67").get_statistics()
    pprint(s)

    # Check channel for failed messages
    e = await api.channel("3cdefad2-bf10-49ee-81c9-8ac6fd2fed67").get_messages(status="error")
    pprint(e)

    # Get 10 most recent events
    e = await api.events(10)
    pprint(e)

Download files

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

Source Distribution

mirth_client-4.2.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mirth_client-4.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file mirth_client-4.2.0.tar.gz.

File metadata

  • Download URL: mirth_client-4.2.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1018-azure

File hashes

Hashes for mirth_client-4.2.0.tar.gz
Algorithm Hash digest
SHA256 2ca346c898f4165c1c66f94d87c636c9731630de7325723b92ec29839399fbfe
MD5 62c4282748efa2f01d09ab6b745f15e9
BLAKE2b-256 784316abdb60d993a89f0284066a3d9b1dd25ac6294ea9cc016231fdbc353b80

See more details on using hashes here.

File details

Details for the file mirth_client-4.2.0-py3-none-any.whl.

File metadata

  • Download URL: mirth_client-4.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.12.13 Linux/6.17.0-1018-azure

File hashes

Hashes for mirth_client-4.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8089a71b907fee97b80525e687c3a2b7532d4dad3c7d79f9141aad56986b4a61
MD5 c8aad60cc31c99ab5e1c471ac58bfede
BLAKE2b-256 0142e344751018a4ec0e2ef287670307c9dc8b5ab2cec30694db56c14cf2dc4e

See more details on using hashes here.

Release history Release notifications | RSS feed

5.0.0

2 files

This release

4.2.0 This release

2 files

4.1.0

2 files

3.2.0

2 files

3.1.0

2 files

3.0.0

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.1

2 files

2.0.0

2 files

1.2.2

2 files

1.2.1

2 files

1.2.0

2 files

1.1.0

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.4.3

2 files

0.4.2

2 files

0.4.1

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page