Skip to main content

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

Project description

Fake MESH

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

Installing

pip install fake_mesh

Usage

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: server.py [-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
                        against
  --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.

Source Distribution

Fake Mesh-0.4.0.tar.gz (31.5 kB view details)

Uploaded Source

Built Distribution

Fake_Mesh-0.4.0-py2.py3-none-any.whl (19.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file Fake Mesh-0.4.0.tar.gz.

File metadata

  • Download URL: Fake Mesh-0.4.0.tar.gz
  • Upload date:
  • Size: 31.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for Fake Mesh-0.4.0.tar.gz
Algorithm Hash digest
SHA256 3598cff751cc398ba709cabf9a199e15ad919ac254bb21fe8943392ccdde8e4f
MD5 db48f22d692b9548ff2a6fb98ade30a6
BLAKE2b-256 61e7db84c3a9342b3e8b6606fa29ec167859e14c9f050bd98920a63571ff1425

See more details on using hashes here.

File details

Details for the file Fake_Mesh-0.4.0-py2.py3-none-any.whl.

File metadata

  • Download URL: Fake_Mesh-0.4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9

File hashes

Hashes for Fake_Mesh-0.4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b41d352d345f0d4fef26f93ba44fc45605d61f9ec71dd04bb3933f9787e035e
MD5 18db22dd7289beea299cdc6f6a2c339f
BLAKE2b-256 ecd489ccbffd18c1976b7c6b4d03a43bf76490b9187f16ec7bd3afdce8ce0024

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page