What does HackerNews think of pipx?

Install and Run Python Applications in Isolated Environments

Language: Python

#125 in Hacktoberfest
#102 in Python
As mentioned in Getting Started, with `pipx`:

`pipx install harlequin`

From the pipx documentation:

> This automatically creates a virtual environment, installs the package, and adds the package's associated applications (entry points) to a location on your PATH.

It makes the command available globally, but sandboxes the package in its own virtual environment.

https://github.com/pypa/pipx

Good overview. There are quite a few on there I was not aware of. That said, I am not sure the organizational schema makes a tone of sense. I would assume most users that come across this would be looking for a package manager for a specific platform and then weighing the options of binary/source/etc., instead of the other way around.

Also, pipx (https://github.com/pypa/pipx) would be a good addition to the list. I'd add it but I'm not sure where it would go. Maybe every section? It's cross platform and handles both binary and source based app distributions.

As detailed in the other answers, there are two parts to this: 1) Creating a python package from your project (and possibly share this on pypi), and 2) Making this package available as an end-user application.

For step 2 you can use nuitka or similar, but if your audience is somewhat developer-oriented, you can also propose for them to use pipx: https://github.com/pypa/pipx.

If you're like me and stick all your Python programs into your system with pipx[1] be wary, running Nuitka out such env will cause you lots of pain with library discovery. I felt so dumb after reinstalling it normally.

[1]: https://github.com/pypa/pipx

vmux [1] might be of interest to you.

It uses the (n)vim remote API with tmux to maintain a global (n)vim session and redirects files opened via `vmux` back to the global session and switches to the window in tmux that session is visible in.

Hints:

- use `pipx` [2] to install `vmux` to make it available globally so you don't need to mess around with virtual environments.

- just `alias nvim=vmux`, and use `command nvim` if you need the real thing.

- I set the following in my profile file:

  export VMUX_EDITOR="nvim"
  export VMUX_GLOBAL="true"

  alias nvim=vmux

[1] https://github.com/jceb/vmux/

[2] https://github.com/pypa/pipx/