Skip to main content

pydantic-monty-runtime

The monty command-line binary for the Monty sandboxed Python interpreter.

Installing the wheel puts the compiled binary in the environment's scripts directory.

You normally don't install this directly — the pydantic-monty metapackage pulls it in alongside the Python bindings, which need it to spawn worker subprocesses. Install it on its own to get just the CLI, or to supply the binary to an existing pydantic-monty-client install:

uv add pydantic-monty-runtime
# or
pip install pydantic-monty-runtime

Or to install the monty binary as a tool

uv tool install pydantic-monty-runtime
monty --help

Usage

  • monty — start an interactive REPL
  • monty file.py — run a Python file
  • monty -c "<code>" — run a program passed as a string (like python -c)
  • -i / --interactive — run the file or -c program in a REPL session (like python -i)
  • -t / --type-check — type check (powered by ty) before executing
  • --type-check-format — diagnostic format: full (default), concise, json, github and the other ty formats (requires --type-check)
  • -m / --mount /host/path::/virtual/path[::mode[::write_limit_bytes]] — mount a host directory into the sandbox (ro, rw, or overlay)
  • --max-memory 10MB, --max-duration 0.5, --max-recursion-depth, --gc-interval, --max-suspensions — sandbox resource limits

Worker mode

monty subprocess runs the binary as a wire-protocol child: framed protobuf requests on stdin, framed events on stdout. This is how pydantic-monty runs sandboxed code with crash isolation, and is meant to be driven by a parent process, not by hand.

The wheels are built from the monty-runtime crate; see its readme for cargo features, telemetry, and the rest of the Rust-side detail.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydantic_monty_runtime-0.0.23.tar.gz (1.7 MB view details)

Uploaded Source

Built Distributions

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

pydantic_monty_runtime-0.0.23-py3-none-win_amd64.whl (10.4 MB view details)

Uploaded Python 3Windows x86-64

pydantic_monty_runtime-0.0.23-py3-none-win32.whl (9.6 MB view details)

Uploaded Python 3Windows x86

pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_x86_64.whl (10.1 MB view details)

Uploaded Python 3musllinux: musl 1.1+ x86-64

pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_aarch64.whl (9.6 MB view details)

Uploaded Python 3musllinux: musl 1.1+ ARM64

pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_x86_64.whl (12.4 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_s390x.whl (11.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ s390x

pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_ppc64le.whl (10.7 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ppc64le

pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_i686.whl (10.5 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ i686

pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_armv7l.whl (10.2 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARMv7l

pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_aarch64.whl (11.9 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

pydantic_monty_runtime-0.0.23-py3-none-macosx_11_0_arm64.whl (11.5 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

pydantic_monty_runtime-0.0.23-py3-none-macosx_10_12_x86_64.whl (9.8 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file pydantic_monty_runtime-0.0.23.tar.gz.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23.tar.gz
Algorithm Hash digest
SHA256 d181f557cd3d19ee826459dea234a2b440e2b6de093e66384629843959146071
MD5 3b3e2d6b6d89b6bb3b617727441fce3e
BLAKE2b-256 df1dc1139f1f82460046d505d7a6871d4d22f9e36cdab967807487f6a70cb51f

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-win_amd64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-win_amd64.whl
  • Upload date:
  • Size: 10.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 742375f494e298a4f96933ac3694a0fe34c9cddd9b666669bc193f348bbed0b8
MD5 049783595f088a97305bdc0b2077c24b
BLAKE2b-256 e6c03f7c604ac93ec47a36a3733d6e7717b7096f0989f669d4133bd3e85f3375

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-win32.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-win32.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-win32.whl
Algorithm Hash digest
SHA256 854f58a472397f34588a22eb813f2acd65efc0bcb966ef1fe173c32366209d15
MD5 310d6fa78781884408d6c1a6c5e85b04
BLAKE2b-256 e100dcd69bd9fcc57c7a6ecfcd3b2199f4598853edb14d504f481dcda41b17cd

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_x86_64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_x86_64.whl
  • Upload date:
  • Size: 10.1 MB
  • Tags: Python 3, musllinux: musl 1.1+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cbf56c19712c12072f6607d8e2323941441c9343734dcb07d2d2b4ce2dd98bf3
MD5 f1254a73a7dcb1b3f757ebc8fb5dea79
BLAKE2b-256 e6f9180d9acbea18d8050c190280ef591cb52d05e4d0e6d026cc6b7b2613510c

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_aarch64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_aarch64.whl
  • Upload date:
  • Size: 9.6 MB
  • Tags: Python 3, musllinux: musl 1.1+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 f0183e589ba18de4fac8a675fe0f93049baa293d5409eb8d39c639dc24af943f
MD5 bd2c80033720a7f52426db4c7b5203f1
BLAKE2b-256 f7532939bce8c8a688771777ee2301851a712744d809d752c1c8dcb5d6a52574

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_x86_64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 12.4 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 721d2d1455482c929c934412e61ecf56673b88a2c0c049e041295cf543ff1412
MD5 433f3b23b7c41e424fd03039426c20f9
BLAKE2b-256 3b826af8a19dd357d63e783e9647ef81d47db2f48c13e96558d25484cd0dec91

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_s390x.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_s390x.whl
  • Upload date:
  • Size: 11.1 MB
  • Tags: Python 3, manylinux: glibc 2.28+ s390x
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_s390x.whl
Algorithm Hash digest
SHA256 28bb59cde9de0cec0d3d5d72029851757249c682a6747251f61e8cdece5995f7
MD5 f65543fa5bf8695a41b7de36a7e9c573
BLAKE2b-256 18d0dc2c2e066ce4f619f34a98b44c9c84fb398095421808c9dd6ac12463aea2

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_ppc64le.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_ppc64le.whl
  • Upload date:
  • Size: 10.7 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ppc64le
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_ppc64le.whl
Algorithm Hash digest
SHA256 9cea174ed1a56888bb58975feff34b0475504ab3831b3b1dc3189397d5bcccc3
MD5 eca6cc28875ed8c3f4261dd95be5fb50
BLAKE2b-256 e8a96a43d9d9f01f441ecd6ec6c31d9b8d45b143a37b9368f582b27378e50ec7

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_i686.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_i686.whl
  • Upload date:
  • Size: 10.5 MB
  • Tags: Python 3, manylinux: glibc 2.28+ i686
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_i686.whl
Algorithm Hash digest
SHA256 b8a049a554bff6ba7e553c1ae4b6290e554b6a1695bc1d47b1b03db485f7fb91
MD5 ae0859caa43eebc2c6d4c6333cbf3de3
BLAKE2b-256 1cf3ea3632cebb754b81fa63c01b84c89299bba936c670fa519f3ff363166bcc

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_armv7l.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_armv7l.whl
  • Upload date:
  • Size: 10.2 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARMv7l
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 7c68422e06c5aae8b52f9835ee949256db0f261301515e4443d6647f249cf789
MD5 f444bd33ba3d9e93f864092bf7d1cbaa
BLAKE2b-256 c2408ed68e144f80c9d14e0532d631ffd78ee6a0ae8d7d3272ac037d5d703266

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_aarch64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_aarch64.whl
  • Upload date:
  • Size: 11.9 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 4bc24603678107b7f5b2b24a5946ca1e103379b2289589212c86959993a052b4
MD5 c66917dfad5af8b38e9f0e0c2a98a4f0
BLAKE2b-256 fe30ebf796ec2236b15cb9f5541e3a940536f37de41bd2561989985aa92fb396

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 11.5 MB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c60e44cbef9cfdc9bd5e53631650490e66890f57e8c6bea5611dae502d8374d4
MD5 5a3f77544aa53869b8c7e21adc7dd406
BLAKE2b-256 150901ae8472d860223618cd61a4656d8ff44519e1bd9e320ee8698dbb206aca

See more details on using hashes here.

File details

Details for the file pydantic_monty_runtime-0.0.23-py3-none-macosx_10_12_x86_64.whl.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.23-py3-none-macosx_10_12_x86_64.whl
  • Upload date:
  • Size: 9.8 MB
  • Tags: Python 3, macOS 10.12+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.10 {"installer":{"name":"uv","version":"0.12.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pydantic_monty_runtime-0.0.23-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0c8968491ae44648c11cf075c0f5d798d4aa7f7e4a0d0754add0b74d725c075c
MD5 74b542614c80fac2f3e90e5c7e8665b1
BLAKE2b-256 0097d1575be31396cf662ea8419d427c58279378a2e08b674d436ed4990751ea

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.23 This release

13 files

0.0.22

13 files

0.0.21

61 files

0.0.20

61 files

0.0.19

61 files

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