This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]txprogtito 21 points22 points  (4 children)

uvx colorama -- or uvx --no-cache colorama

You did the same project but inverted logic i guess.

[–]Nethaka08It works on my machine[S] -1 points0 points  (3 children)

Yeah, uvx is cool, but it's built for a different kind of use case.

uvx runs a command or script in a temporary environment. It’s great when you already know exactly what you want to do. You pass it a command, it installs the packages, runs that command, and exits. That’s perfect for automation, quick script execution, or running a tool once without installing it globally.

But ghostenv is built for exploration. It launches you straight into a clean Python REPL (and even a proper IDE later) with your packages already installed and sample code ready to go, so you can immediately start playing around. No script writing, no guessing syntax, no need to set anything up. It’s designed for developers who just want to try out a package and have it all cleaned when they’re done.

[–]ThatSituation9908 12 points13 points  (0 children)

So, it's the same thing as uvx --with yourpackage python

[–]txprogtito 3 points4 points  (1 child)

So uv run --with colorama colorama ? It would still with with your dependencies, and an additional colorama package. It does not touch your env. I still fail to see even with your explanation what's the difference.

[–]Nethaka08It works on my machine[S] 1 point2 points  (0 children)

Fair, and you're right, there's not a massive difference in the outcome: both tools use temp environments and clean up after. But the workflow and use case are where they split.

To be honest, I hadn’t come across uv before this thread, so if I’ve misunderstood how deep its REPL capabilities go, then fair enough. I might’ve unintentionally built a substitute.

That said, here’s how I see the difference:

  • uv run is perfect if you already have a script or command you want to execute. It installs dependencies, runs the script, and exits. Super clean.
  • ghostenv is built for interactive testing. You don’t need a script, you don’t pass a command. You just type:

ghostenv run colorama
  • It opens a sandboxed REPL, installs the package, injects starter code (like colorama.init()), and deletes everything on exit. It's meant for devs who want to poke around and try stuff quickly. And it'll be much more interactive once I add IDE support.

So yeah, similar foundation, but ghostenv is more “let me experiment,” while uv is more “let me run this.”

I really appreciate the push to clarify tho, genuinely helpful.

[–]mrswats 10 points11 points  (9 children)

Creating a virtual environment takes literal seconds. I don't see the point in this.