python-mirth-client
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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ca346c898f4165c1c66f94d87c636c9731630de7325723b92ec29839399fbfe
|
|
| MD5 |
62c4282748efa2f01d09ab6b745f15e9
|
|
| BLAKE2b-256 |
784316abdb60d993a89f0284066a3d9b1dd25ac6294ea9cc016231fdbc353b80
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8089a71b907fee97b80525e687c3a2b7532d4dad3c7d79f9141aad56986b4a61
|
|
| MD5 |
c8aad60cc31c99ab5e1c471ac58bfede
|
|
| BLAKE2b-256 |
0142e344751018a4ec0e2ef287670307c9dc8b5ab2cec30694db56c14cf2dc4e
|