{"id":23421350,"url":"https://github.com/nhsdigital/mesh-client","last_synced_at":"2025-09-17T23:36:04.956Z","repository":{"id":42623245,"uuid":"264230422","full_name":"NHSDigital/mesh-client","owner":"NHSDigital","description":"A Python client library for NHS Digital MESH","archived":false,"fork":false,"pushed_at":"2024-02-13T12:47:27.000Z","size":516,"stargazers_count":9,"open_issues_count":0,"forks_count":8,"subscribers_count":5,"default_branch":"develop","last_synced_at":"2024-04-13T07:14:19.458Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NHSDigital.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGE-LOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-05-15T15:30:35.000Z","updated_at":"2024-07-05T15:56:16.859Z","dependencies_parsed_at":"2023-11-16T22:54:15.496Z","dependency_job_id":"1f73711f-b4aa-40ad-ae7e-ba5309edc7aa","html_url":"https://github.com/NHSDigital/mesh-client","commit_stats":{"total_commits":89,"total_committers":8,"mean_commits":11.125,"dds":0.550561797752809,"last_synced_commit":"d642246421892ea59c5f34e671b917e2fb80085a"},"previous_names":[],"tags_count":52,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fmesh-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fmesh-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fmesh-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NHSDigital%2Fmesh-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NHSDigital","download_url":"https://codeload.github.com/NHSDigital/mesh-client/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248578863,"owners_count":21127713,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-23T02:14:53.909Z","updated_at":"2025-09-17T23:36:04.920Z","avatar_url":"https://github.com/NHSDigital.png","language":"Python","readme":"MESH Client\n===========\n\nA Python client for [NHS England's MESH API](https://digital.nhs.uk/developer/api-catalogue/message-exchange-for-social-care-and-health-api).\n\nRelease Notes\n------------\nsee [CHANGE-LOG](CHANGE-LOG.md) for news on major changes\n\n\nInstallation\n------------\n\n```bash\npip install mesh-client\n```\n\nExample use\n-----------\n\n```python\nfrom mesh_client import MeshClient, INT_ENDPOINT\n# or LIVE_ENDPOINT\n\nwith MeshClient(\n        INT_ENDPOINT,\n    'MYMAILBOX',\n    'Password',\n    cert=('/etc/certs/cert.pem', '/etc/certs/key.pem')  # Mesh uses SSL, so you'll need some certs\n) as client:\n    client.handshake()  # It will work without this, but Spine will complain\n    message_ids = client.list_messages()\n    first_message = client.retrieve_message(message_ids[0])\n    print('Subject', first_message.subject)\n    print('Message', first_message.read())\n    first_message.acknowledge()\n\n    # Alternatively, iterate\n    for message in client.iterate_all_messages():\n        with message:  # With block will handle acknowledgement\n            print('Message', message.read())\n\n    client.send_message('RECIPIENT_MAILBOX', b'Hello World!', subject='Important message')\n```\n\nTesting your application\n------------------------\n\nWe recommend using the [mesh sandbox](https://github.com/NHSDigital/mesh-sandbox) \nhave a look at this [docker-compose.yml](docker-compose.yml) for an example of how to run the sandbox\n\n\nGuidance for contributors\n-------------------------\n\nsee [CONTRIBUTING](CONTRIBUTING.md)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhsdigital%2Fmesh-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnhsdigital%2Fmesh-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnhsdigital%2Fmesh-client/lists"}