4 ms·
Python actually has support for this with `pip-run`. There's a PR to get similar behaviour into `pipx`, which is effectively the `npx` of Python world. I think
by agoose77 4y ago
Python actually has support for this with `pip-run`. There's a PR to get similar behaviour into `pipx`, which is effectively the `npx` of Python world. I think the single-script-with-dependencies workflow has been somewhat ignored until now; it would be nice to see that become easier.
- rubenfiszel 4y agoIf I'm not mistaken, looking at the docs of: https://pypi.org/project/pip-run/ https://pypi.org/project/pip-run/ it doesn't parse the AST to infer the dependencies, you still have to declare them (either in script with # Requirements comment (which we also use as an escape hatch https://docs.windmill.dev/docs/reference#dependency-management https://docs.windmill.dev/docs/reference#dependency-manageme...)) or externally declared. So it's close but not exactly the same.