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. The wheel includes the MIT licence for Monty and the upstream licences and notices for the embedded CPython modules and typeshed stubs.

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

Built distributions (wheels)

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

Total release size: 189.1 MB

Release files / pydantic_monty_runtime-1.7.0.tar.gz

Download URL pydantic_monty_runtime-1.7.0.tar.gz
Size 3.1 MB
Tags Source
SHA-256 checksum
How to use checksums
d01cf0c702993ce6bfc41a12218fe1b202fb6cc8a183280823b92accd9fae9cb
BLAKE2b-256 checksum
How to use checksums
2e3ddc8e323aed1edc7fc636a3233340cc1971bb3304e26fac032b86659b05f5
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.0-py3-none-win_amd64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-win_amd64.whl
Size 15.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ab2e7c3403d1be3add579959ea0810ac9c7279164d60b01d5a8589b7482d1569
BLAKE2b-256 checksum
How to use checksums
d849cbd871ba2dc7ee7a66e6af39c97fff3a00411549e9a2c86673ee718dbf80
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.0-py3-none-win32.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-win32.whl
Size 14.1 MB
Tags Python 3 Windows x86-32
SHA-256 checksum
How to use checksums
86f338bda51e90785f641d22dd90f1e143fd9d9e9b78c6016447229e896e6c14
BLAKE2b-256 checksum
How to use checksums
5a029e2256680d1da680cbe133592c880e2168e123b55ce2ac2c395e144885fb
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.0-py3-none-musllinux_1_1_x86_64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-musllinux_1_1_x86_64.whl
Size 14.9 MB
Tags Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
fb89f20c007c60d600236475025529357eede86cafa279d9b2bc502efdd67fc4
BLAKE2b-256 checksum
How to use checksums
26b0059f4a2afc0a58d9bc0bf261b401cb195f4c414b1aa87e611369ba9f996a
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.0-py3-none-musllinux_1_1_aarch64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-musllinux_1_1_aarch64.whl
Size 14.1 MB
Tags Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
31b168519fdd68a81003891f9225fa414b1e06c200c2c21ad332ac33202ea10f
BLAKE2b-256 checksum
How to use checksums
5e993bb2d13a4795627fec9d238d759fba5d260b393b42ea99e0a88bb92fbc85
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.0-py3-none-manylinux_2_28_x86_64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-manylinux_2_28_x86_64.whl
Size 17.1 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
e7636925b62abb56d411ca49c9be243858e2725c70658d8bd8bd87414901024a
BLAKE2b-256 checksum
How to use checksums
fab7220a5bdc710f76ada52396bcb04f75d92a53f8f1cf0d15bfae38ed67128f
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.0-py3-none-manylinux_2_28_s390x.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-manylinux_2_28_s390x.whl
Size 17.6 MB
Tags Linux glibc 2.28+ IBM System/390x Python 3
SHA-256 checksum
How to use checksums
44f4661f7200e47d44702711821a0e007082f76a8e458950e9d9d5b306fa3d8a
BLAKE2b-256 checksum
How to use checksums
9253840571eda6cdbf1919473269d29e2e998e30a2e96bf1297bc73d6ea54182
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.0-py3-none-manylinux_2_28_ppc64le.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-manylinux_2_28_ppc64le.whl
Size 16.0 MB
Tags Linux glibc 2.28+ PowerPC 64-le Python 3
SHA-256 checksum
How to use checksums
0d4f9e2fae70c60e7f2c88cdf2236a7acf0f3864f21fd12d89966ac3509a4307
BLAKE2b-256 checksum
How to use checksums
4c35998f9aa72523d66e2d33e5728ea34612877f2e347bc98bcbb28483bf4e0a
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.0-py3-none-manylinux_2_28_i686.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-manylinux_2_28_i686.whl
Size 15.4 MB
Tags Linux glibc 2.28+ x86-32 Python 3
SHA-256 checksum
How to use checksums
facb17473bfa7ee7173fb1f85f49af74cf6c9c3b8d787d4d048ca3d4550c413f
BLAKE2b-256 checksum
How to use checksums
820dbd9059568f50acbccf1166a77486955f4e5bd111fe8384ad215e721fb29a
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.0-py3-none-manylinux_2_28_armv7l.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-manylinux_2_28_armv7l.whl
Size 15.2 MB
Tags Linux glibc 2.28+ ARMv7l Python 3
SHA-256 checksum
How to use checksums
9109c8a37bafc7f37266744279db4f92f8a363cea1a8c66cfc06c0e56013f56f
BLAKE2b-256 checksum
How to use checksums
2f91cc894b564aa26181bfe89ef6cfc1b88fbbcdfa9613337cd154e3a5c2942b
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.0-py3-none-manylinux_2_28_aarch64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-manylinux_2_28_aarch64.whl
Size 16.4 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
061c3fc7a3a66726571b467c76aca4b0994b075332d6ce3915e6f79739df3580
BLAKE2b-256 checksum
How to use checksums
0c10709dd1372bb6a9e38c8e9289aed9b2942e6d2fb52b3a919881cbe810b82b
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.0-py3-none-macosx_11_0_arm64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-macosx_11_0_arm64.whl
Size 15.8 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
206a7533bdb1743f6ac1d55dd608dbaca509da7d0c865a9ebc0ea3244d2ca112
BLAKE2b-256 checksum
How to use checksums
1beff5162238aabab7c44b19062bd44de18da8be1a610b6408a260f5fe436bb1
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.0-py3-none-macosx_10_12_x86_64.whl

Download URL pydantic_monty_runtime-1.7.0-py3-none-macosx_10_12_x86_64.whl
Size 14.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ebc0d9ece29d99917a2754b48c7ba3ec746011403ab1dc2bd073527c38f8c1fd
BLAKE2b-256 checksum
How to use checksums
9551a61f65ad1c775d381ca9301809606de83942d0965322b0e9cd827dc508fd
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.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