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.0b1

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

Built distributions (wheels)

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

Total release size: 150.7 MB

Release files / pydantic_monty_runtime-1.0.0b1.tar.gz

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

Download URL pydantic_monty_runtime-1.0.0b1-py3-none-win_amd64.whl
Size 12.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
54313495b96c97662b7920d12b763f9465b8e72204ddb4555ad4c89374af78ff
BLAKE2b-256 checksum
How to use checksums
9c9f5969b63b72754e8267c1b07bf1cb8eafd630512de73102d81e5f10947c45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.0b1-py3-none-win32.whl

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

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

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

Download URL pydantic_monty_runtime-1.0.0b1-py3-none-manylinux_2_28_x86_64.whl
Size 14.5 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
15bd7659a5ac94082d968345915ab17d2638d674c7025f565464297557fd1ce4
BLAKE2b-256 checksum
How to use checksums
133083ea4bcb4880640d0e05ee7ec8cca515e280565b20f6102676064340cfde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.17 {"installer":{"name":"uv","version":"0.12.17","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.0b1-py3-none-manylinux_2_28_s390x.whl

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

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

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

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

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

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

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