Skip to content

Allow us to run REPL or monty foo.py standalone without using python bindings #315

@jbvsmo

Description

@jbvsmo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions