Skip to main content

pydantic-monty-runtime

The monty command-line binary for the Monty sandbox.

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); repeat for several, which need distinct virtual paths and disjoint host directories; an import of a module the sandbox does not bundle runs <cwd>/name/__init__.py, else <cwd>/name.py, from them, raising ModuleNotFoundError when neither exists
  • --cwd /virtual/path — the sandbox's working directory (default: the first mount's virtual path, else /); relative paths resolve against it
  • --max-memory 10MB, --max-feed-duration 0.5, --max-turn-duration, --max-recursion-depth, --gc-interval, --max-suspensions — sandbox resource limits
  • --max-sleep 10 — longest wait a time.sleep() / asyncio.sleep() performs, in seconds; longer sleeps are cut short (inf for no limit)
  • --max-total-sleep 30 — maximum cumulative time the host waits for those sleeps, in seconds; a sleep that would go over is refused (off unless given)

date.today(), datetime.now() and time.localtime() use the system clock in UTC; astimezone() and time.tzname also report that zone; time.time(), time.monotonic() and time.perf_counter() all return Unix epoch seconds. time.process_time() is always 0.0. time.sleep() and asyncio.sleep() wait for at most --max-sleep seconds each. An unseeded random draw uses system entropy. Rust embedders can change these defaults with MontyRun::with_os_policy; the CLI only exposes the sleep limits. os.urandom() raises NotImplementedError (or RuntimeError under --mount) because the CLI has no handler for it.

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.

Metadata

Release files for pydantic-monty-runtime 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydantic-monty-runtime 1.5.0
File Size Uploaded Provenance Actions
pydantic_monty_runtime-1.5.0.tar.gz 2.8 MB Without provenance Details for pydantic_monty_runtime-1.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pydantic-monty-runtime 1.5.0
File Actions
pydantic_monty_runtime-1.5.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for pydantic_monty_runtime-1.5.0-py3-none-win_amd64.whl
pydantic_monty_runtime-1.5.0-py3-none-win32.whl Python 3 none Windows x86-32 Details for pydantic_monty_runtime-1.5.0-py3-none-win32.whl
pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_x86_64.whl Python 3 none Linux musl 1.1+ x86-64 Details for pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_x86_64.whl
pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64 Details for pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_aarch64.whl
pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_x86_64.whl
pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_s390x.whl Python 3 none Linux glibc 2.28+ IBM System/390x Details for pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_s390x.whl
pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_ppc64le.whl Python 3 none Linux glibc 2.28+ PowerPC 64-le Details for pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_ppc64le.whl
pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_i686.whl Python 3 none Linux glibc 2.28+ x86-32 Details for pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_i686.whl
pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_armv7l.whl Python 3 none Linux glibc 2.28+ ARMv7l Details for pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_armv7l.whl
pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_aarch64.whl
pydantic_monty_runtime-1.5.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for pydantic_monty_runtime-1.5.0-py3-none-macosx_11_0_arm64.whl
pydantic_monty_runtime-1.5.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for pydantic_monty_runtime-1.5.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 168.6 MB

Release files / pydantic_monty_runtime-1.5.0.tar.gz

Download URL pydantic_monty_runtime-1.5.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
25af3d34de126d32f087ef60fd0f5f103f9c50f4f51ede2f0fb78bc9656a3929
BLAKE2b-256 checksum
How to use checksums
89bd3aa3fe974100c0361536bda384131d165c8101a7a2ed381c76dd5d5d11e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-win_amd64.whl
Size 13.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
6ed218e495363c62a0ccce883bab1067984f556e3766bebe6d32893808b584bf
BLAKE2b-256 checksum
How to use checksums
0275d16729a053ba9502ae4def998702cb999571b7754484043cb5eda6d20c4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-win32.whl
Size 12.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
0a025049913acc0b2c2e08d2ff40192da80520a00e599ad76824e770470f8f2e
BLAKE2b-256 checksum
How to use checksums
9acf3425b97bc428f64c29b47f3a142fe7b6d34ccf6c4c970e6701dd601a79bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_x86_64.whl
Size 13.3 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
cc0dca854e2627b9863c08959ede38ac2eec98b5b493f91b8d2c661761a45504
BLAKE2b-256 checksum
How to use checksums
498d523ed3a5f9ce78dab480982b51df3ea6c3f90417eb1c7a3fd62b29dbcc63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-musllinux_1_1_aarch64.whl
Size 12.6 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
5cae8f9b5b72d60910e3550b2424cb31fbe54f2694859f88402bd36449a9f481
BLAKE2b-256 checksum
How to use checksums
24db2e016cdefc59297e273235d9649bd5452739a5d6e2a47f670ddfdf629cc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_x86_64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_x86_64.whl
Size 15.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
bf3e0beedc95d401caad8796dcdd3b385e3a99df3c983835da13e1f7dca04d9f
BLAKE2b-256 checksum
How to use checksums
26cf4bf3b742486e1cd6b019571bfbfaf1ad1ee1a13eeb293d6cfe32fda10e78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_s390x.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_s390x.whl
Size 15.4 MB
Tags Linux glibc 2.28+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
959839956a51a99a21996eb96cced9f5653bfde29e8ca85048460e6c9389ba1f
BLAKE2b-256 checksum
How to use checksums
4c16f56622075d8271d4a24b4b66cde1623bf7a55c09dec5abc6ddd283ea2d83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_ppc64le.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_ppc64le.whl
Size 14.2 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
38168d6b232877cabf58cec34aec779a407d1ab828a369eeacb14f195524da81
BLAKE2b-256 checksum
How to use checksums
bf39a631be5a11504fb91bd6eef65b7705d75e0749e8689e3dbe3edff5ebfaaf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_i686.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_i686.whl
Size 13.8 MB
Tags Linux glibc 2.28+ x86-32 Python 3
SHA-256 checksum
How to use checksums
2ce22170607734a88983f0092386f6d2aed9c7c8ae14f47545057ad0707a2062
BLAKE2b-256 checksum
How to use checksums
7e0772fd7fcaba2328e1993df6cf5027b67820409385bf89906fd97b46158d86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_armv7l.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_armv7l.whl
Size 13.6 MB
Tags Linux glibc 2.28+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
97b957d7c35fb6e325a6c37fdc4b08d49e24c45d50790f48e3f5a2e34487548b
BLAKE2b-256 checksum
How to use checksums
158e8c38c67e319b11d56c9c301fa0b6a6a422aedf7ff3a3e8656308ed4f0f9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_aarch64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-manylinux_2_28_aarch64.whl
Size 14.5 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
c2086ed331ba404dcff27d241bdd7468e26eaf8fd6b7fdad851e33ba57426b76
BLAKE2b-256 checksum
How to use checksums
20f78f459559ccf3da12ae81b4902c174f620aa57620ceaaadd24724a4c49aea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-macosx_11_0_arm64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-macosx_11_0_arm64.whl
Size 14.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
17bfe8cc71abf297d162cb5ac90e3e0f57f5266ebb044af0f18df2eb5d9a6f1e
BLAKE2b-256 checksum
How to use checksums
c77bd3f1bad453f2962690c8a80452cbb7c687afeb8816720d715113d5a9c81a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Release files / pydantic_monty_runtime-1.5.0-py3-none-macosx_10_12_x86_64.whl

Download URL pydantic_monty_runtime-1.5.0-py3-none-macosx_10_12_x86_64.whl
Size 12.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9662ea55a35b56f330866a6e48510a5f4d667181be674aa406468914a70889cd
BLAKE2b-256 checksum
How to use checksums
9c7bf4cac83cb8c05f5410db2e046fffd864c5ff724456e809576b61fd6ff7f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Security for pydantic-monty-runtime 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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