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.2.tar.gz
(40.4 kB
view hashes)
Built Distribution
Close
Hashes for mesh_sandbox-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f2592d17a427e5b5e4246d1d881cd6656b79792f8da19c98f1296d3d1ac832 |
|
MD5 | 8bf9e1f0fd933563f85535dd8e735fe6 |
|
BLAKE2b-256 | 45485402c2975673258ab5b52469670eca7044b41e5ba604cb06d489a812fa71 |