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; an import of a module the sandbox does not bundle runs <cwd>/name/__init__.py, else <cwd>/name.py, from them, raising ModuleNotFoundError when neither exists
  • --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 worker: 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 client, not by hand.

monty subprocess --prewarm-type-checker has the worker build a type checker with the builtins resolved at startup and between sessions, so a session's first type check skips that work; a request arriving mid-build waits for it. It costs about 6 MiB per worker, counted in the worker's baseline rather than any session's max_memory.

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.7.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.7.0b1
File Size Uploaded Provenance Actions
pydantic_monty_runtime-1.7.0b1.tar.gz 3.0 MB Without provenance Details for pydantic_monty_runtime-1.7.0b1.tar.gz

Built distributions (wheels)

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

Total release size: 187.5 MB

Release files / pydantic_monty_runtime-1.7.0b1.tar.gz

Download URL pydantic_monty_runtime-1.7.0b1.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
2c7034230a7cdacf381b88ffce31762b7e68a19da3e8503156baa4fc43cb30f8
BLAKE2b-256 checksum
How to use checksums
2cf22325a79c1ae97a29e2dfd512f5ecacea51f3880043e21f615ca69d2cb43c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-win_amd64.whl
Size 15.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
df62129f7203b7b8268ea367e4ea46b86d482811e599ec0054a3835f110068eb
BLAKE2b-256 checksum
How to use checksums
fe951da460fdf8df8506c7d21ab47cc96d2e06c096f98c06b59a3ade33a8a82f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-win32.whl
Size 14.0 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
e4e3d6ff1469cb8824db96b89db650bdd7b0cc54968ee9f6ac47e56076cad6d2
BLAKE2b-256 checksum
How to use checksums
a4316191d8c554cbc9eeb753ab2532e17c8de47a57d00b321fb977941bc59fc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-musllinux_1_1_x86_64.whl
Size 14.8 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8ac2ecd79fa33f35c6f14c13c74611a26a1e7607b878c52829cc11db651231d3
BLAKE2b-256 checksum
How to use checksums
e3ca871d6b6e07590812304a139ca2ababde8bd0218ae17b7b50ce20d17379f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-musllinux_1_1_aarch64.whl
Size 14.0 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
ff3b5a3c666b0abf07e42770660206cb03ae95a9a8e83ad4a1478c9a01e99880
BLAKE2b-256 checksum
How to use checksums
b142a27935e8a3d6fd186959dbc4e990d154a27d774da36733ce1fa858c2a109
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-manylinux_2_28_x86_64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-manylinux_2_28_x86_64.whl
Size 17.0 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e697ac615cdd230bd4828f88fd1dc8610e460a9652ae51b398c65d6a0f4b101a
BLAKE2b-256 checksum
How to use checksums
285a2ad420ee5e5c523f16738ccb8034324dd8844e31f272c1aaa85704c98093
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-manylinux_2_28_s390x.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-manylinux_2_28_s390x.whl
Size 17.4 MB
Tags Linux glibc 2.28+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
dd42bc1d33f9febb298793eed77f2f267e1aef93910ed110710e263bd827ad95
BLAKE2b-256 checksum
How to use checksums
e377ff8bca10afe1a2f907c14ade1630ed4e53f6b8b5e1dda3d8025a85b0f54e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-manylinux_2_28_ppc64le.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-manylinux_2_28_ppc64le.whl
Size 15.9 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
8de85c6cfa4db264944b67ee71d7359061c31494a41a1d82299ac8e62cfcde80
BLAKE2b-256 checksum
How to use checksums
6ee4119a003949d374a07776ce52e4ec4767f7603cbf90b11bc97f9cad901a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-manylinux_2_28_i686.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-manylinux_2_28_i686.whl
Size 15.3 MB
Tags Linux glibc 2.28+ x86-32 Python 3
SHA-256 checksum
How to use checksums
d2c65d68d3630d923eadeaf3724d598a514e1fe089e651b6302bc0fcc777ffd5
BLAKE2b-256 checksum
How to use checksums
2aa581d1c6ca37746640e68255156d964bae4f4edd5a540b5f36cc5f45910adc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-manylinux_2_28_armv7l.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-manylinux_2_28_armv7l.whl
Size 15.0 MB
Tags Linux glibc 2.28+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
4fcb1135e7c149593e76cf8894e6af32608a6a744074bc857d3ef19e12ced050
BLAKE2b-256 checksum
How to use checksums
51a5075b097f3797e8f326055ea172b4d5331ac005a7ead860bd7f0b000f9f21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-manylinux_2_28_aarch64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-manylinux_2_28_aarch64.whl
Size 16.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
4161de29c7611aac8a03ff48f18ddf875835a9192d72837645446505fa65d2e3
BLAKE2b-256 checksum
How to use checksums
9b5e10b544e5dd618680566328295ad8143c518f70d96b2a35e12fee2027f965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-macosx_11_0_arm64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-macosx_11_0_arm64.whl
Size 15.7 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b3ec6ce510d0747c2d8341ed5f546c076da91e1e0b6118689d8df7cc36b1be28
BLAKE2b-256 checksum
How to use checksums
491039e85f92a3dd4b021f65889b598345c89eef60b793b10cfecef9f018b94c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1-py3-none-macosx_10_12_x86_64.whl

Download URL pydantic_monty_runtime-1.7.0b1-py3-none-macosx_10_12_x86_64.whl
Size 14.3 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6812ce1fa8dadf965723fdb49556a9ed05c77ef7c5999219a459f172be3af54c
BLAKE2b-256 checksum
How to use checksums
44071740094936ae08afc4e639c932dc81126826c95eb3a811b180277b110f31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","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.7.0b1

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