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 FILE_STORE_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
adsf plugin install python
adsf plugin install java
adsf plugin install poetry
install the tools
cd <project_dir>
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 Distribution
mesh_sandbox-0.1.3.tar.gz
(40.3 kB
view hashes)
Built Distribution
Close
Hashes for mesh_sandbox-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7707a9807d90ecf5c94377338a62f7da6a7f4672011ed4b9c237063d0216ff2a |
|
MD5 | 6c401da927fa27335b8ab73594c642b9 |
|
BLAKE2b-256 | 96e3c1858e9416b6e6d9d38371e737d0266b1b3bca195bfeaf91340ed5b79f89 |