Skip to main content

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

services:

  mesh_sandbox:
    build: 
      context: https://github.com/NHSDigital/mesh-sandbox.git#refs/tags/v1.0.4
    ports:
      - "8700:443"
    deploy:
      restart_policy:
        condition: on-failure
        max_attempts: 3
    healthcheck:
      test: curl -ksf https://localhost/health || exit 1
      interval: 3s
      timeout: 10s
    environment:
      - SHARED_KEY=TestKey
      - SSL=yes
#      - STORE_MODE=file  # store mode file will persist data to disk
    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
      - ./src/mesh_sandbox/test_plugin:/app/mesh_sandbox/plugins:ro
      # you can mount a directory if you want access the stored messages
      #      - ./messages:/tmp/mesh_store
      # you can also mount different server cert and key if using ssl and you need a trusted certificate
#      - ./mycert.pem:/tmp/server-cert.pem:ro
#      - ./mycert.key:/tmp/server-cert.key:ro

Guidance for contributors

contributing

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

If you're not sure about the file name format, learn more about wheel file names.

mesh_sandbox-1.0.79-py3-none-any.whl (82.0 kB view details)

Uploaded Python 3

File details

Details for the file mesh_sandbox-1.0.79-py3-none-any.whl.

File metadata

  • Download URL: mesh_sandbox-1.0.79-py3-none-any.whl
  • Upload date:
  • Size: 82.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.2 CPython/3.12.3 Linux/6.17.0-1020-azure

File hashes

Hashes for mesh_sandbox-1.0.79-py3-none-any.whl
Algorithm Hash digest
SHA256 0ba71f3860c23adbaf24d3c2d8987608f1a158b762e3bd06ea35599a661da263
MD5 e9f89e80e4766893238f18813099f3a4
BLAKE2b-256 67948975adb304c381df35043c8684679882d30f80d0a1f6d95706ea0e1a2285

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.100

1 file

1.0.99

1 file

1.0.98

1 file

1.0.97

1 file

1.0.96

1 file

1.0.95

1 file

1.0.94

1 file

1.0.93

1 file

1.0.92

1 file

1.0.91

1 file

1.0.90

1 file

1.0.89

1 file

1.0.88

1 file

1.0.87

1 file

1.0.86

1 file

1.0.85

1 file

1.0.84

1 file

1.0.83

1 file

1.0.82

1 file

1.0.81

1 file

1.0.80

1 file

This release

1.0.79 This release

1 file

1.0.78

1 file

1.0.77

1 file

1.0.76

1 file

1.0.75

1 file

1.0.74

1 file

1.0.73

1 file

1.0.72

1 file

1.0.71

1 file

1.0.70

1 file

1.0.69

1 file

1.0.68

1 file

1.0.67

1 file

1.0.66

1 file

1.0.65

1 file

1.0.64

1 file

1.0.63

1 file

1.0.62

1 file

1.0.61

1 file

1.0.60

1 file

1.0.59

1 file

1.0.58

1 file

1.0.57

1 file

1.0.56

1 file

1.0.55

1 file

1.0.54

1 file

1.0.53

1 file

1.0.52

1 file

1.0.51

1 file

1.0.50

1 file

1.0.49

1 file

1.0.48

1 file

1.0.47

1 file

1.0.46

1 file

1.0.45

1 file

1.0.44

1 file

1.0.43

1 file

1.0.42

1 file

1.0.41

1 file

1.0.40

1 file

1.0.39

1 file

1.0.38

1 file

1.0.37

1 file

1.0.36

1 file

1.0.35

1 file

1.0.34

1 file

1.0.33

1 file

1.0.32

1 file

1.0.31

1 file

1.0.30

1 file

1.0.29

1 file

1.0.28

1 file

1.0.27

1 file

1.0.26

1 file

1.0.25

1 file

1.0.24

1 file

1.0.23

1 file

1.0.22

1 file

1.0.21

1 file

1.0.20

1 file

1.0.19

1 file

1.0.18

1 file

1.0.17

1 file

1.0.16

1 file

1.0.15

1 file

1.0.14

1 file

1.0.13

1 file

1.0.12

1 file

1.0.11

1 file

1.0.10

1 file

1.0.9

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

0.1.34

1 file

0.1.33

1 file

0.1.32

1 file

0.1.31

1 file

0.1.30

1 file

0.1.29

1 file

0.1.28

1 file

0.1.27

1 file

0.1.26

1 file

0.1.25

1 file

0.1.24

1 file

0.1.23

1 file

0.1.22

1 file

0.1.21

1 file

0.1.20

1 file

0.1.19

1 file

0.1.18

1 file

0.1.17

1 file

0.1.16

1 file

0.1.15

1 file

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page