Find the out-dated packages installed by the Pip tool and update them. Inspired by 👉depu(Go).
However, pkgu
supports full and partial updates, which is more convenient and flexible. It also supports cross-platform(Windows, linux, macos). 🤓 To retrieve the data more fast after the first-time(Or don't have to execute command again), I use sqlite as cache db to store the data and can quickly read it from db and present it to the console💻.
👉 However, only python3.10 and above are available now.
First, you need to install dependencies.
if you don't have poetry
tool, please install it first. 🔗: poetry installation, otherwise, install packages directly.
poetry install
and then, run pkgu.py
script.
python3 pkgu.py
pip3 install pkgu
after the installation is complete, pkgu
executable file will be written to the python bin directory and you can enter pkgu -h
command on your terminal to learn how to use it.
- No packages need to be upgraded.
- Upgrade some expired packages.
- Update the pkg synchronously
- Update the pkg asynchronously
We can see that the async method is faster than sync method about 9 seconds(Only in this test situation). So now it can support to update the python libraries asynchronously. 🥳
- Support for selectable update packages
- !!!New - Support to use cache result from sqlite db file.
This improve the expirence that how we list the out-dated packages when they are huge to collect, and then there also is a cli flag --no-cache
to control whether should to use cache.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。