Skip to main content

A fake implementation of NHS Digital MESH, but one that should stand up to modest load

Project description


A lightweight implementation of NHS Digital's MESH API, for testing purposes.


pip install fake_mesh


Start a server with:

python -m fake_mesh.server

This will start a fake MESH instance on port 8829, using the client, server and CA certificates that are in this repo. If you need to use the Java MESH client, there is also an example keystore and config (mockMesh.jks and meshclient.cfg) in the repo.

You can see the options available:

$ python -m fake_mesh.server -h
usage: [-h] [--dir DIR] [--ca-cert CA_CERT] [--cert CERT]
                 [--key KEY] [-p PORT] [-i HOST] [-d] [--no-log]
                 [--log-file [LOG_FILE]]

Run a fake MESH server

optional arguments:
  -h, --help            show this help message and exit
  --dir DIR             Where to store the application data
  --ca-cert CA_CERT     CA certificate to validate incoming connections
  --cert CERT           SSL certificate for this server
  --key KEY             SSL private key for this server
  -p PORT, --port PORT  Port to listen on
  -i HOST, --host HOST  Host interface to bind to
  -d, --debug           Print data sent and received to stderr
  --no-log              Disable all logging
  --log-file [LOG_FILE]
                        File to use for logging - use stderr if not specified

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Fake-Mesh, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size Fake_Mesh-0.3.1-py2.py3-none-any.whl (19.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size Fake Mesh-0.3.1.tar.gz (31.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page