github.com

Hi HN! This is my first open source package. PyCharm used to have a nifty tool to show you requirements.txt packages that needed updates. You could click a button and open the github page, click a button to upgrade, all in the file. It was super convenient. Then it went away.

The package was written in a few languages that I have no experience with, but I figured I'd build something that worked for my use case, and maybe it can help you, too. After installing, you point it at your requirements.txt file, and it will spit out something like this:

----

File caching enabled The following packages need to be updated:

requests: 2.28.0 -> 2.31.0 [minor]

- Pypi page: https://pypi.python.org/project/requests/

- Homepage: https://requests.readthedocs.io

- Changelog: https://requests.readthedocs.io/en/latest/community/updates/...

redis: 4.5.0 -> 5.0.1 [major]

- Pypi page: https://pypi.python.org/project/redis/

- Homepage: https://github.com/redis/redis-py

- Changelog: https://github.com/redis/redis-py/blob/master/CHANGES

----

Unlike some pip tools that will show you every single package that's outdated, this focuses only on the top level packages you have in your requirements file.

I'd love any feedback! Thanks for your time.

https://github.com/ontherivt/req-update-check

11
3
esafak 23 hours ago

I would rename Req to "python requirements.txt" as the title is quite ambiguous. Also, you can still manage packages, no?

https://www.jetbrains.com/help/pycharm/installing-uninstalli...

hookedonwinter 8 hours ago

You can still manage packages, but it's similar to pip list in that it shows all the dependencies, so it can get cumbersome.

Additionally, the context it gives you when you're trying to read release notes isn't great, and it tries to upgrade to the absolute latest release, even if it's only a release candidate.

Heard on the name, I'll think more on it. Thanks!

lleymrl651 14 hours ago

good