Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

Release files for pydantic-monty-runtime 1.0.0b3

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.0.0b3
File Size Uploaded
pydantic_monty_runtime-1.0.0b3.tar.gz 2.1 MB Details

Built distributions (wheels)

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

Total release size: 154.3 MB

Release files / pydantic_monty_runtime-1.0.0b3.tar.gz

Download URL pydantic_monty_runtime-1.0.0b3.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
1dc35e5a228771618aae020937da6ace58e6e2de4457d512510dc59e03603cb2
BLAKE2b-256 checksum
How to use checksums
ce8f2061a38c9b3cfa2d85bbc46c69980ea5e375b9fc3b3bcb58d97349ec0f20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.0.0b3-py3-none-win_amd64.whl
Size 12.3 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ab0a2d4008d5fe20db6b33511c9a2d27657a951d008f37fb319e909ca6b86f98
BLAKE2b-256 checksum
How to use checksums
59934bfb43b9db84163f17dc516431c3c09b778a8ff657635e93b9d27befd057
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.0.0b3-py3-none-win32.whl
Size 11.4 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
2e5cba60f70120e674d3030986e401fd592a112a70ca49b8fe7c7b7576df862f
BLAKE2b-256 checksum
How to use checksums
212b0565315340c21b31213958f40ae3e269af74d55771749e92f39860a59c60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-musllinux_1_1_x86_64.whl

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

Download URL pydantic_monty_runtime-1.0.0b3-py3-none-musllinux_1_1_aarch64.whl
Size 11.4 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
11134697195743600ae23c00c693abddaeef63a6f52798360f3005be18a32c1f
BLAKE2b-256 checksum
How to use checksums
09f9e4d867f8f01531b358effcca1a486776670f0ff2bfe252e79241d2816220
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-manylinux_2_28_x86_64.whl

Download URL pydantic_monty_runtime-1.0.0b3-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
455b4e0f53be2b258e194da70c11c4814bf3d45253c2eb265e306c4f0f1d4df6
BLAKE2b-256 checksum
How to use checksums
4fb9fbb2c82824e47cb76454c70adb16f9f2f5c8e87b93e6ec41c65034210236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-manylinux_2_28_s390x.whl

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

Download URL pydantic_monty_runtime-1.0.0b3-py3-none-manylinux_2_28_ppc64le.whl
Size 12.8 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
3d50df763a42c3ab57087eba642aefc11cd02749e40d02963bdac29d98c09143
BLAKE2b-256 checksum
How to use checksums
73379cf69fc71b68a49e730a4b4762d098401ae82b66ce04597d3e194303f409
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-manylinux_2_28_i686.whl

Download URL pydantic_monty_runtime-1.0.0b3-py3-none-manylinux_2_28_i686.whl
Size 12.4 MB
Tags Linux glibc 2.28+ x86-32 Python 3
SHA-256 checksum
How to use checksums
0a799ac9eba326776455d9fb8e771e02b7bd498cb49cb267575e73ff3a46d327
BLAKE2b-256 checksum
How to use checksums
7447b6b89664a4f5b49d3d11293117adbb4804fadae8da857b651d3479ee2efd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.18 {"installer":{"name":"uv","version":"0.12.18","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.0.0b3-py3-none-manylinux_2_28_armv7l.whl

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

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

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

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