NHSDigital mesh sandbox, a locally testable version of the MESH api
Project description
MESH Sandbox
MESH sandbox for local testing of NHS Digital's MESH API.
Installation
Example use
pip
pip install mesh-sandbox
STORE_MODE=file MAILBOXES_DATA_DIR=/tmp/mesh uvicorn mesh_sandbox.api:app --reload --port 8700 --workers=1
curl http://localhost:8700/health
docker compose
version: '3.9'
services:
mesh_sandbox:
build:
context: https://github.com/NHSDigital/mesh-sandbox.git#develop
ports:
- "8700:80"
deploy:
restart_policy:
condition: on-failure
max_attempts: 3
healthcheck:
test: curl -sf http://localhost:80/health || exit 1
interval: 3s
timeout: 10s
environment:
- SHARED_KEY=TestKey
volumes:
# mount a different mailboxes.jsonl to pre created mailboxes
- ./src/mesh_sandbox/store/data/mailboxes.jsonl:/app/mesh_sandbox/store/data/mailboxes.jsonl:ro
Guidance for contributors
this project uses
- python 3.9
- java coretto11
- poetry > 1.2
Setup
using asdf install asdf
get the required plugins
asdf plugin add python
asdf plugin add java
asdf plugin add poetry
install the tools
asdf install
install the dependencies
make install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for mesh_sandbox-0.1.31-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1003b44320e92226f2a893ee460962b5d281057d3ba35945568cccbfb3879a7 |
|
MD5 | 34a68cf4ba0516216f7c860bae8567ab |
|
BLAKE2b-256 | 3491e97f93930e64906469396b6968f02ff2cabc33f8840da1b3f8f06571ecf4 |