News for hackers. Stuff that matters.
Re:Show HN: Bagels – TUI Expense Tracker by oneeyedpigeon on Monday January 27, 2025 @05:04AM (#42839333)
It looks great, but I don't feel enthusiastic about installing yet another package manager. Are there really enough benefits from uv to justify it as the only option?
Re:Show HN: Bagels – TUI Expense Tracker by lpedrosa on Monday January 27, 2025 @05:18AM (#42839422)
> Are there really enough benefits from uv to justify it as the only option?

The author probably really likes uv, thus the biased instructions.

I also think uv is great, but I wouldn't mention it in the user facing installation instructions. People are used to pip/pipx, thus asking them to install yet another tool might drive potential users away.

The usual pip or pipx command should work fine. It's listed on PyPI: https://pypi.org/project/Bagels

I would only mention uv in the Development Setup section (https://github.com/EnhancedJax/Bagels?tab=readme-ov-file#dev...)

Re:Show HN: Bagels – TUI Expense Tracker by sorenjan on Monday January 27, 2025 @06:27AM (#42839874)
I find uv to be a great way for installing and trying different Python projects. It comes with the uvx command, which makes a temporary venv, installs the right Python version and all project dependencies, and starts the program. It uses the PyPi index, so it's not the only option, but I think it's better than pip/pipx.

For instance, running `uvx --python 3.13 Bagels` made a temporary environment and installed all dependencies in 1.01s on my computer, and it took less than 10 seconds for the program to start after creating a database etc. Next start takes less than 2 seconds since it's cached. If I decide I want to keep using it, I can install it using the uv tool command, if not I just do nothing.

https://docs.astral.sh/uv/guides/tools/

Re:Show HN: Bagels – TUI Expense Tracker by EnhancedJax on Monday January 27, 2025 @05:15AM (#42839405)
I believe you can simply use pipx, if you have that. I picked uv because it handles installing python for you. I do want to add Bagels to homebrew, but have to do a bit more reading to figure that out.
Re:Show HN: Bagels – TUI Expense Tracker by sorenjan on Monday January 27, 2025 @06:50AM (#42840069)
I think you should change the Windows install section in the readme. Instead of installing uv by downloading and running a Powershell script you can use winget:

  winget install --id=astral-sh.uv  -e
https://docs.astral.sh/uv/getting-started/installation/#wing...
Re:Show HN: Bagels – TUI Expense Tracker by EnhancedJax on Monday January 27, 2025 @10:16AM (#42841963)
Thanks! Will check out!
Re:Show HN: Bagels – TUI Expense Tracker by wdroz on Monday January 27, 2025 @05:16AM (#42839411)
They are using the "normal" dependencies section in the pyproject.toml, so you should be able to install with pip or other tools if you want.

It's only for dev-specifics dependencies that they are using the uv-specifics section.

You can try uv in 2 min and see if you like it or not.