Hi,
I would like to experimetn with monty CLI for code agents by replacing python on their container/sandbox with monty. I see there is a crates/monty-cli for it, but I dont see it distributed anywhere. You have to compile it from source with Rust AFAIK.
The published packages (pydantic-monty on PyPI, @pydantic/monty on npm) are library-only, so uvx --from pydantic-monty monty doesn't work. And using Python to call into a Python-like interpreter feels a bit silly :)
Would be great to have the standalone binary available somehow. A few options:
- GitHub Release binaries: attach compiled
monty binaries to each release tag. Simplest, zero dependencies.
- GHCR distroless image: container/sandbox friendly by pushing a minimal
ghcr.io/pydantic/monty image with just the binary. Astral (uv/ruff) does this and is very useful to me.
- PyPI binary wheel: (e.g. a separate
monty-cli package) just the native binary, no Python bindings. Astral also does this. Then uvx monty-cli foo.py just works.
I think a combination of these (or all of them) would not be hard on your current pipeline seeing you already cross compile everything on every release.
Hi,
I would like to experimetn with
montyCLI for code agents by replacing python on their container/sandbox with monty. I see there is acrates/monty-clifor it, but I dont see it distributed anywhere. You have to compile it from source with Rust AFAIK.The published packages (
pydantic-montyon PyPI,@pydantic/montyon npm) are library-only, souvx --from pydantic-monty montydoesn't work. And using Python to call into a Python-like interpreter feels a bit silly :)Would be great to have the standalone binary available somehow. A few options:
montybinaries to each release tag. Simplest, zero dependencies.ghcr.io/pydantic/montyimage with just the binary. Astral (uv/ruff) does this and is very useful to me.monty-clipackage) just the native binary, no Python bindings. Astral also does this. Thenuvx monty-cli foo.pyjust works.I think a combination of these (or all of them) would not be hard on your current pipeline seeing you already cross compile everything on every release.