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.22.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.22-py3-none-win_amd64.whl (10.4 MB view details)

Uploaded Python 3Windows x86-64

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

Uploaded Python 3Windows x86

pydantic_monty_runtime-0.0.22-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.22-py3-none-musllinux_1_1_aarch64.whl (9.6 MB view details)

Uploaded Python 3musllinux: musl 1.1+ ARM64

pydantic_monty_runtime-0.0.22-py3-none-manylinux_2_28_x86_64.whl (12.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

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

Uploaded Python 3manylinux: glibc 2.28+ s390x

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

Uploaded Python 3manylinux: glibc 2.28+ ppc64le

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

Uploaded Python 3manylinux: glibc 2.28+ i686

pydantic_monty_runtime-0.0.22-py3-none-manylinux_2_28_armv7l.whl (10.1 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARMv7l

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

Uploaded Python 3manylinux: glibc 2.28+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

pydantic_monty_runtime-0.0.22-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.22.tar.gz.

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.22.tar.gz
Algorithm Hash digest
SHA256 3fcb04337851772c6820768b495ec694865b04c83f0901ec67c8f16a7ce19fea
MD5 7dc8be8f05573d900bd596b31e61b895
BLAKE2b-256 7b562a11db1cd4ad2e4ea25a0addfd591b8e590696d0d3ac0bff6feac9c5b323

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 29612789d61b8d5e7a4fdfe5989c23e355ded4e6d7231ba576c16edcea6a4717
MD5 093b90f89e778c8cf9dc1dc14fe6012e
BLAKE2b-256 6502f0e8b1d75153110013d2e598017e51b4d943ffd1ed0dbf719b192229298f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-win32.whl
Algorithm Hash digest
SHA256 f735c83b150010e577a86838325453a0d584095a1e39f80cc50ddf751a95289d
MD5 3a9d4e781fc6277f61a746bf6de23796
BLAKE2b-256 391e01a30977ab04ccf397ba455a3f2c9ee81bd4ad76a0e683cedf5aa4e5112e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 cd7368cac2df49b1dc2603627ca42e9173a1e906969f739e12830a1a027354d9
MD5 82df738284ad10ccebcf717aca9daf4b
BLAKE2b-256 59f4d8d9c8279dc968ba92c64286dcddfed989ce2aeb7d63e56fb74031020d96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 b1e14c32710ad04eab59a8128c6463b20442ad53c56c5d645ff20dcdd05c83ba
MD5 287aaf5924894e7197777056a2dfd7a3
BLAKE2b-256 28ce303276bdfd8b93b58b6fcea09827c4299309605e4f479efb2301cd934575

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-py3-none-manylinux_2_28_x86_64.whl
  • Upload date:
  • Size: 12.3 MB
  • Tags: Python 3, manylinux: glibc 2.28+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c51c2520aca9b530bafd74995f71e93234ad5d7369b487251e92552ae32311e7
MD5 ddc67ab2a84515563f2db87a1454f8ae
BLAKE2b-256 66ca92b6a81cb4cc83363d4547a424f94333ab87fdc069927bdace3b81c8658b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-manylinux_2_28_s390x.whl
Algorithm Hash digest
SHA256 333fa6f93c162b9d1afaab079b219ac19126ce7dc0bd29ca11cc0ce6e87ff453
MD5 83a27e49247e068ce023be620d24d790
BLAKE2b-256 7a2af14e51ac15a8755c81ba455d8b6423066a2961c2935efb8ea1550dcd62b6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-manylinux_2_28_ppc64le.whl
Algorithm Hash digest
SHA256 a9ad27a75dd00eab355e6b2566f4bafd9b8b11e9cd03af99942436610b7f1697
MD5 750d6017a26c8b17b072a74676b84f26
BLAKE2b-256 406cfea33fd0b67f0ff092766baef51f84160444d95245e853b540405b609374

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-manylinux_2_28_i686.whl
Algorithm Hash digest
SHA256 a76ccb38b6b41311c4d3ca185a6f83751904c2c94df9108f71f00efa01a47daf
MD5 9a4722056e3fc04e9b95563d38f71d51
BLAKE2b-256 5b518a143d1460d12edefb0db698ca3100a98bf025c1e1b0394094b5111958ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-py3-none-manylinux_2_28_armv7l.whl
  • Upload date:
  • Size: 10.1 MB
  • Tags: Python 3, manylinux: glibc 2.28+ ARMv7l
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-manylinux_2_28_armv7l.whl
Algorithm Hash digest
SHA256 a51e2919a886345165aa95444530b1fe9b2a2c1353220d30583f917922b7f0e5
MD5 319acf0f7a0057a2b90634c47aad308b
BLAKE2b-256 e29de683420f2ca17c0228459a3baa25034f4089300133de6694c6bfee45d41d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2fc25dc15f5c795842faeb377ed3dd2b16eb0135d3c0ff9c007253d8f6833da5
MD5 255486bd2869b443a9132e31396a7499
BLAKE2b-256 0ee2484de84f6af55fb5b1e78c75e45d20ef1d8cd7c800e4f1da68c7ee43a6c5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b8a481b32ca8da174560613811f999709b74f0a6bd7c4670caaa4bd266151a6e
MD5 37ed22742053040a15e47f9ba11ec6b4
BLAKE2b-256 8f779d956ef4931fab2b5d2b5454244db8845c3ad8c4798ab8ba7c085249e630

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydantic_monty_runtime-0.0.22-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.9 {"installer":{"name":"uv","version":"0.12.9","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.22-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 cc63f4c30666ca82952fc7ed6f0a1ecb7e99a835ff4bfef363a6f5e91bf5cc69
MD5 19dd16c6a1c45961ddca2b49d1f5687f
BLAKE2b-256 366ab08b92a16a1c8c41e1572d5eb3377569b2ea0a807d0ae2b697f3bb1f6b03

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.23

13 files

This release

0.0.22 This release

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