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.3.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.3.0
File Size Uploaded Provenance
pydantic_monty_runtime-1.3.0.tar.gz 2.5 MB Without provenance Details

Built distributions (wheels)

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

Total release size: 165.7 MB

Release files / pydantic_monty_runtime-1.3.0.tar.gz

Download URL pydantic_monty_runtime-1.3.0.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
fe299a91e2d3888fb8abd70ba0673766b3296f07b70ad5d2833765298e5771d4
BLAKE2b-256 checksum
How to use checksums
aad8e12e0bb3597c732ff2e5c08a16e7dec4509b4175289a7ad0220cbdaeb9fa
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.3.0-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-win_amd64.whl
Size 13.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
d47d30d8906549fae0c0837c462bfe9291b9a667de4db641fe359f63bc9fd448
BLAKE2b-256 checksum
How to use checksums
fed8c8816ea471b99df29b5dc07e536086927c31b4535b1d42501b266acdfba3
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.3.0-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-win32.whl
Size 12.2 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
05c3d25558c177574b8063e810d0e4ddd542d9ac6dd79a0b93aee1ad66b3876e
BLAKE2b-256 checksum
How to use checksums
1283791e91403a6136bac560ade2ff76944906fed14a83e2205a4011aa940867
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.3.0-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-musllinux_1_1_x86_64.whl
Size 12.8 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
28a1cbec5a083cf46f611847b8fb9c745ff1e0fba78ed1f2476ee17a675a7b78
BLAKE2b-256 checksum
How to use checksums
2ef3206079adbd8571c8f287b11089966646b0f00778d984f45d26cefb3417af
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.3.0-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-musllinux_1_1_aarch64.whl
Size 12.1 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
5a454ee4f83491f6de3de021e0c5e197fe06973aa2a3a14a00943da36033e822
BLAKE2b-256 checksum
How to use checksums
c3f336448043658cfc6a00a4fb72facc0fd87da3dd59ef35ec239107cd445baf
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.3.0-py3-none-manylinux_2_28_x86_64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-manylinux_2_28_x86_64.whl
Size 16.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
7948355d47bd296ddaab6aae3364a6fc760b0b836c03ea9c9e8c3f8f5fd0459b
BLAKE2b-256 checksum
How to use checksums
a1c343f859232d9d91943b4027dd21c0f523976ce3783e95e3931fc7fdf34f7c
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.3.0-py3-none-manylinux_2_28_s390x.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-manylinux_2_28_s390x.whl
Size 14.7 MB
Tags Linux glibc 2.28+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
a4e4faa8cb94a6db015afe018f4e5fc2409c656d3352710cd85043f5df3fd3c8
BLAKE2b-256 checksum
How to use checksums
0e3a34459520f1c059e4f5bb03ec5ad253c10c926fc73cebc4c9c3a96504009b
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.3.0-py3-none-manylinux_2_28_ppc64le.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-manylinux_2_28_ppc64le.whl
Size 13.7 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
e7de36881f3d2e3b640f656253102493f05b55438bb14cff24f8768751180acf
BLAKE2b-256 checksum
How to use checksums
54df382568dc9f5208f74789b09860364e8c284c73dc20d562bec8be82910273
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.3.0-py3-none-manylinux_2_28_i686.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-manylinux_2_28_i686.whl
Size 13.3 MB
Tags Linux glibc 2.28+ x86-32 Python 3
SHA-256 checksum
How to use checksums
a2c089b9233ae33c49934db82e222393f2635945c3b35175a0adeecc03e2854a
BLAKE2b-256 checksum
How to use checksums
78b7afe7f7ed3cf33b168c0ed6087757382ce162780a26d71fad2e3a20dd586b
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.3.0-py3-none-manylinux_2_28_armv7l.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-manylinux_2_28_armv7l.whl
Size 13.0 MB
Tags Linux glibc 2.28+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
d30df7bc9dfd99a2c8953a31be587847cd7bb20ed2e308a21ce5ca4371ebf77f
BLAKE2b-256 checksum
How to use checksums
9c451f242a94c72fa490151c5a1983a9a2f67fa487937e6cfeb472b5e64228de
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.3.0-py3-none-manylinux_2_28_aarch64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-manylinux_2_28_aarch64.whl
Size 15.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
f76339b864bc30059fdac372bdf343ce14bf8ea0b98af33f752aa302c558353f
BLAKE2b-256 checksum
How to use checksums
dd7c22d42a09161c72501169a610e973e437dee74b0f24e5d4366410c7ead065
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.3.0-py3-none-macosx_11_0_arm64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-macosx_11_0_arm64.whl
Size 14.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9466e6ff0c9d48ad9c355e728d9b54d02cbabec583ddc6f32d73b81d79a4a444
BLAKE2b-256 checksum
How to use checksums
48811d0fe6f85390fcd4b574dd6f95240f07076f005db1604515d69598d09b0a
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.3.0-py3-none-macosx_10_12_x86_64.whl

Download URL pydantic_monty_runtime-1.3.0-py3-none-macosx_10_12_x86_64.whl
Size 12.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e5729765051051961d27825d84727b7bb0f54790fb6b62f083e680fd539a7fb2
BLAKE2b-256 checksum
How to use checksums
4b125297132733df03c335a4ec683fb220971d12ed9004dcb8a3d6ddd3014f3f
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.3.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