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
  • --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.4.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.4.0
File Size Uploaded Provenance Actions
pydantic_monty_runtime-1.4.0.tar.gz 2.6 MB Without provenance Details for pydantic_monty_runtime-1.4.0.tar.gz

Built distributions (wheels)

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

Total release size: 164.5 MB

Release files / pydantic_monty_runtime-1.4.0.tar.gz

Download URL pydantic_monty_runtime-1.4.0.tar.gz
Size 2.6 MB
Tags Source
SHA-256 checksum
How to use checksums
5275beb451201bd23669a253c8be93b90cad018b449fcdd0a1ad57daeed15187
BLAKE2b-256 checksum
How to use checksums
bee71567009ab17fe091caba156ea9406487520ef382543e73ac7354a4eef88a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-win_amd64.whl
Size 13.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
c2f5a7503288087669f7c5c6131dc9b68a26dfabf07d5fb36df33ff475afbe61
BLAKE2b-256 checksum
How to use checksums
5fb25ac23283be20db8b127c42bb1072910d809792c98cb5b626a85e6ffdcc09
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-win32.whl
Size 12.4 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
30c393985843e836b32e1ceb18c251661e54984bb1e992b7a88d5e897679af01
BLAKE2b-256 checksum
How to use checksums
24be2d221328cd4017b3cfefb6c197740e56ab02689ac1300ad883450a15d565
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-musllinux_1_1_x86_64.whl
Size 13.0 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
af1f5d41c32207a2ecd9a9c4277290911c6e5f37299588097c7ff83240bb665c
BLAKE2b-256 checksum
How to use checksums
50c4fc238425268af5ca9642d5ae997cb1101c95b87e7876ceabf8275b42a1d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-musllinux_1_1_aarch64.whl
Size 12.3 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ae4e68d623b9038f8a41baa95e06e8d32402ad972120b068d14c336bb924eb03
BLAKE2b-256 checksum
How to use checksums
8085317a61daca57f3211d53f868977dbd1d491e0212082f0e79cd6df50137de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-manylinux_2_28_x86_64.whl

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

Download URL pydantic_monty_runtime-1.4.0-py3-none-manylinux_2_28_s390x.whl
Size 15.0 MB
Tags Linux glibc 2.28+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
7e13192106dea260dc605a371ab44ffd248dc5afe0ab003f873779774c73a7e6
BLAKE2b-256 checksum
How to use checksums
20602ebff28552652f00f4a8b7266570326f8e03383d44a9e06d492501cbaed5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-manylinux_2_28_ppc64le.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-manylinux_2_28_ppc64le.whl
Size 13.9 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
2be251cc1ee73337dbe3a7ea00d657e4a8385f2476523e74c5685d8f1fc2fea4
BLAKE2b-256 checksum
How to use checksums
e9e9d812921782424db588b9772f57558df4ad8e58c65125d5101f511a08180d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-manylinux_2_28_i686.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-manylinux_2_28_i686.whl
Size 13.5 MB
Tags Linux glibc 2.28+ x86-32 Python 3
SHA-256 checksum
How to use checksums
be875b3d248df50768ef9d2c420252e14458ec6f99a1ba2f10e34b0a2f7d88c1
BLAKE2b-256 checksum
How to use checksums
66d6b9ab4adaa305b2aaa5624a9ac5b9a21fb65312c44f8dd658d336d2e20356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-manylinux_2_28_armv7l.whl

Download URL pydantic_monty_runtime-1.4.0-py3-none-manylinux_2_28_armv7l.whl
Size 13.3 MB
Tags Linux glibc 2.28+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
b33e86f80adeb86f7928c5040602049d9a245d7cf08ff1398b2ee577fbf7d6fb
BLAKE2b-256 checksum
How to use checksums
35cd326b9d2333d3f18a1642ed0c6721f9454a1672a469b316c92942d764363e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-manylinux_2_28_aarch64.whl

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

Download URL pydantic_monty_runtime-1.4.0-py3-none-macosx_11_0_arm64.whl
Size 13.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
317edf6c62ea62c8a0f456ec13be889387cd16a917441fc087953cae042e6d75
BLAKE2b-256 checksum
How to use checksums
cb9b0eedee19d738a168cb4fbcefb1be38cb7c729c750d0293379483e38fa71a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","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.4.0-py3-none-macosx_10_12_x86_64.whl

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