Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A python client library that allows easy integration with Canary

Project Description

The canarymd python library offers an interface to the Canary Health API at



$ pip install canarymd


import canarymd
client = canarymd.Client(principal='{USERNAME}', credential='{PASSWORD}')
html =
  context   = '{CONTEXT}',
  peo       = {
    'transport'   : canarymd.Transport.SITE,
    'purpose'     : canarymd.Purpose.PREPARE,
    'recipient'   : recipient.toHL7(),
    'appointment' : {
      'time'        : '2014-12-02T18:20:06Z',
      'patients'    : [patient.toHL7() for patient in patients],
      'provider'    : provider.toHL7(),
      'type'        : 'new',
      'reason'      : 'us/namcs:5035.0',
      'policy'      : policy.toHL7(),
  timeout   = 30,

# now do something with the HTML messages!

TODO: add documentation

Release History

This version
History Node


Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers