Skip to main content

MESH Client

A Python client for NHS England's MESH API.

Release Notes

see CHANGE-LOG for news on major changes

Installation

pip install mesh-client

Example use

from mesh_client import MeshClient, INT_ENDPOINT
# or LIVE_ENDPOINT

with MeshClient(
        INT_ENDPOINT,
    'MYMAILBOX',
    'Password',
    cert=('/etc/certs/cert.pem', '/etc/certs/key.pem')  # Mesh uses SSL, so you'll need some certs
) as client:
    client.handshake()  # It will work without this, but Spine will complain
    message_ids = client.list_messages()
    first_message = client.retrieve_message(message_ids[0])
    print('Subject', first_message.subject)
    print('Message', first_message.read())
    first_message.acknowledge()

    # Alternatively, iterate
    for message in client.iterate_all_messages():
        with message:  # With block will handle acknowledgement
            print('Message', message.read())

    client.send_message('RECIPIENT_MAILBOX', b'Hello World!', subject='Important message')

Testing your application

We recommend using the mesh sandbox have a look at this docker-compose.yml for an example of how to run the sandbox

Guidance for contributors

see CONTRIBUTING

Metadata

Release files for Mesh-Client 6.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Mesh-Client 6.0.2
File Size Uploaded Provenance Actions
mesh_client-6.0.2.tar.gz 109.0 kB Without provenance Details for mesh_client-6.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Mesh-Client 6.0.2
File Interpreter ABI Platform Actions
mesh_client-6.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for mesh_client-6.0.2-py2.py3-none-any.whl

Total release size: 139.9 kB

Release files / mesh_client-6.0.2.tar.gz

Download URL mesh_client-6.0.2.tar.gz
Size 109.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d05bbde4bf53f1ace980cef5d0335cc82200f84437e074123834c2de729005f9
BLAKE2b-256 checksum
How to use checksums
02402c52662ebe24c772e159af758a97cae7f31edf4659b793424e2d6157937c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / mesh_client-6.0.2-py2.py3-none-any.whl

Download URL mesh_client-6.0.2-py2.py3-none-any.whl
Size 31.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
30fbe7260ea562c0e6480310524b38193df5712b0ca65dfa8d45ff7c71d8ca49
BLAKE2b-256 checksum
How to use checksums
267a25f345f1deb02e7876e0310f6200067a7dc55d1a9258a0029fb57464d278
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for Mesh-Client 6.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

6.0.2 This release

2 release files No provenance

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