Package to help developers check and upgrade their libraries as they wish.
PYTHON VERSION SUPPORTED >= 3.10
When executed, the system will check up for all your already used libraries and requirements, and then it
will provide a list, giving the opportunity for the users to choose which one they want to be upgraded to the
latest version.
Libraries it uses: OS, SUBPROCESSES, TIME.SLEEP
The system works at that sequence:
- Through a command line inside the terminal (hidden from user view), it asks PIP the list of libraries that are being used that are out of date, transforming it in a temporary .TXT file;
- After that, it reads all lines from that .TXT file and present it as an interactive menu from which the users can easily see and choose, one by one, those that they want to upgrade. Meanwhile, the TXT file is deleted right away;
- In sequence, the system will confirm the option and give the order to PIP to upgrade that specifc library;
- During the installation, the system will print the process and give a feedback to the users;
- Finally, it rolls back to PIP and asks again for out of date libraries to present the menu one more time, restarting the interaction;
When there is no more libraries out of date according to the information returned from PIP
lib_upgade uses " pip list -o " command to recieve the list of all out of date libraries that are being used in the project
- In the terminal, type the command → " pip install lib-upgrade "
2. After successfully installed, you can run it from inside a _Script_ or from the _Terminal / Python Console_:
2.1. RUNNING FROM INSIDE AN SCRIPT
- If you are using an IDE e.g. PyCharm, you shall import the library as followed:
" " "
from lib_upgrade.lib_upgrade import upgrade_lib
upgrade_lib()
" " "
2.2. RUNNING FROM TERMINAL / CONSOLE
- If you are using any terminal, make sure you are inside the correct VENV within you project, then import and execute as followed:
" " "
(.venv) python
from lib_upgrade.lib_upgrade import upgrade_lib
upgrade_lib()
" " "
3. After initialized, interact with the program to choose which one of the out of date libraries you want PIP to upgrade 4. When there is no more library to be updated, the system will autoterminate.