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; 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.

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.6.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.6.0
File Size Uploaded Provenance Actions
pydantic_monty_runtime-1.6.0.tar.gz 2.8 MB Without provenance Details for pydantic_monty_runtime-1.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 169.0 MB

Release files / pydantic_monty_runtime-1.6.0.tar.gz

Download URL pydantic_monty_runtime-1.6.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
6fab4c1da3bd96c5761c53f62ffec46ac7b22b797042e4711084adf564e8d32d
BLAKE2b-256 checksum
How to use checksums
128ed27281f56ac0de551f111e2cea33dca7b9cbe4a0708d815d2939202fbcb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.6.0-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.6.0-py3-none-win_amd64.whl
Size 13.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
786268a731cbee7d64417159de5e58c8741d4bfe6a8628cfaceef18815a30b0e
BLAKE2b-256 checksum
How to use checksums
303f0e239b4e7f830a47e62a4f7dad7951b7ca125bb8d29984cd5b4bc7d2eef0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.6.0-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.6.0-py3-none-win32.whl
Size 12.7 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
ec38334148db01f4a0c749981410cb702b2c54011cf5527ac6dd01c0a4b12189
BLAKE2b-256 checksum
How to use checksums
48a6771c16356543676f8acfc99e62fd1a936ea3c1767928e212a3ccc6bd02ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.6.0-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.6.0-py3-none-musllinux_1_1_x86_64.whl
Size 13.4 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
68cb6309aa39843f19648f65cf563451212f7f5dc3f6df0b27112d07a5e77ec8
BLAKE2b-256 checksum
How to use checksums
322753a6a1fd664503630f4926a1b97342d8d4f7d06ab2cadf915ee86c44ef9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.6.0-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.6.0-py3-none-musllinux_1_1_aarch64.whl
Size 12.6 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
96c759090ce31880d11b2e97c5c5fc5a04c4916dea50165203d844e9ea0f4cb9
BLAKE2b-256 checksum
How to use checksums
217bce7e59c657381c05f8deafe3eea0b8e41090e36d821906fa7bc7d90280ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.6.0-py3-none-manylinux_2_28_x86_64.whl

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

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

Download URL pydantic_monty_runtime-1.6.0-py3-none-manylinux_2_28_ppc64le.whl
Size 14.2 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
5c853dcdc7a14a3470e78a42ef26886d9311a51051ecc947434b8265c356ee8c
BLAKE2b-256 checksum
How to use checksums
074de18b3b60ee6f3f614f6e80632915bd6084afb9a71d1ee2a72cf347f5b2d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.6.0-py3-none-manylinux_2_28_i686.whl

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

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

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

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

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

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