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.2.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.2.0
File Size Uploaded Provenance
pydantic_monty_runtime-1.2.0.tar.gz 2.4 MB Without provenance Details

Built distributions (wheels)

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

Total release size: 162.8 MB

Release files / pydantic_monty_runtime-1.2.0.tar.gz

Download URL pydantic_monty_runtime-1.2.0.tar.gz
Size 2.4 MB
Tags Source
SHA-256 checksum
How to use checksums
a9a1252efd6e51b55cc2c21d832f101af605b887fc896d1b0799d720e283e2a3
BLAKE2b-256 checksum
How to use checksums
4b7f006acc79c52ff61fd05e549956b2cd49cd5cea2955244421b4cbac0cf78e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-py3-none-win_amd64.whl

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

Download URL pydantic_monty_runtime-1.2.0-py3-none-win32.whl
Size 12.0 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
31c7e1395ff48ab1b378f9313ac851b2ec2ab02bfb30960999860f5af607cad6
BLAKE2b-256 checksum
How to use checksums
78a07fca1e799b009d109ce847987088806f404365ae780a80c83a5bac96e1ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.2.0-py3-none-musllinux_1_1_x86_64.whl
Size 12.6 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0c3709c7a78458bed334a9b5d70d3b3ba789efe0fd2ea921732a881f98da8ebb
BLAKE2b-256 checksum
How to use checksums
4664465da6eb04e4ce0a7ee610c8c3368e17e8f90e0bfe291c4786e93ffcf2af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.2.0-py3-none-musllinux_1_1_aarch64.whl
Size 11.9 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
697737b94b74449146cbbc41cec0901bfba6c2e104f5a3bd8456d0eb8269dced
BLAKE2b-256 checksum
How to use checksums
4a2a9cb4fb11c935efb274c2d63e2498e61a4be8bf0358629738a6d154e30d88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-py3-none-manylinux_2_28_x86_64.whl

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

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

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

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

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

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

Download URL pydantic_monty_runtime-1.2.0-py3-none-macosx_11_0_arm64.whl
Size 14.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0bf4d5e162fabf010ada6b82f65629b6c6f37e2ffa5af842ffc66bb96dc76c04
BLAKE2b-256 checksum
How to use checksums
23fff95190190552e048224b34664c0b464ac0caf30938a0e8842ea4ae498828
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","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.2.0-py3-none-macosx_10_12_x86_64.whl

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

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