Skip to main content

Package to help developers check and upgrade their libraries as they wish

Project description

lib-upgrade (pip install lib-upgrade)

Package to help developers check and upgrade their libraries as they wish.

PYTHON VERSION SUPPORTED >= 3.10

HOW IT WORKS

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:

  1. 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;
  2. 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;
  3. In sequence, the system will confirm the option and give the order to PIP to upgrade that specifc library;
  4. During the installation, the system will print the process and give a feedback to the users;
  5. Finally, it rolls back to PIP and asks again for out of date libraries to present the menu one more time, restarting the interaction;

HOW IT STOPS

When there is no more libraries out of date according to the information returned from PIP

"PIP LIST -O" COMMAND

lib_upgade uses " pip list -o " command to recieve the list of all out of date libraries that are being used in the project

INSTALLING AND EXECUTING:

  1. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lib_upgrade-0.2.tar.gz (17.7 kB view details)

Uploaded Source

File details

Details for the file lib_upgrade-0.2.tar.gz.

File metadata

  • Download URL: lib_upgrade-0.2.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for lib_upgrade-0.2.tar.gz
Algorithm Hash digest
SHA256 8f1d7d36511ed222ecfc8b4b573165384aad35555d41bdb5774a468e7ff3b75d
MD5 0b5ab6c9a87c7aaa1e11e1666edad0b9
BLAKE2b-256 b9af5f3b69497e7603cd8ad4204bd48f8e6d708fbfb3d5620904e20c83baf8ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page