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-5.0.0.tar.gz (10.9 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-5.0.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mirth_client-5.0.0.tar.gz
Algorithm Hash digest
SHA256 330a1b324a14ff9f354c30bbe7538aa862e3e40ab7ecb46f264d3dc3882beb77
MD5 c264c2a1e5f2a719ebc43404ffd3707d
BLAKE2b-256 524029f409e95cd0f47f30d5df8552657e333b04820a2ef12b0961981f84a5f8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mirth_client-5.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 783ac63611b10eff2f2ef425edb169227cabfcc0b01a3909fdaf18136a2c82cb
MD5 4a38975e4b295c0e04a7730d8c9c3c7b
BLAKE2b-256 06239d415376ffc98ab038ad1aff1c292e11558d2eb6c53c61564f601706bfb2

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

5.0.0 This release

2 files

4.2.0

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