Skip to main content

An import manager that allow you to manage easily your importations in your project

Project description

itmgr

An import manager that allow you to manage easily your importations in your project

Installation

You can install it using pip:

pip install itmgr

Usage

from itmgr import * #Or use : install_and_import, importation, install, uninstall, remove_module, check_latest_version

# And write your importations and your code below

# Example :

install_and_import(("os", True, False, False)) # Import os module as an "import os" statement without an update check

importation(("PIL.Image", True, "Image", False)) # Import PIL.Image module as an "from PIL import Image as Image" statement without an update check

if not os.path.exists("image.png"): # Check if the image.png file exists
    Image.new("RGB", (100, 100), (255, 255, 255)).save("image.png") # Create a new image and save it as image.png

Image.open("image.png").show() # Open the image.png file

You can also add link between libs for importation and installations by using this line in your console :

itmgr add lib_name link_to_install

You can of course delete a link by using this line in your console :

itmgr del link1 *or* itmgr del link2
  • link1 and link2 are the links you want to delete

You can of course use these functions in your code :

from itmgr import add, delete # delete function in code is link to del function in console for itmgr
add(lib_name, link_to_install)
delete(link1 *or* link2)

Note : Please avoid using the __check_latest_version__ function, it is a special function used in the code that was not created for user use.

Contributing

The contributions are welcome ! You can contribute by adding new features, fixing bugs, improving the documentation and code, etc.

Author

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

itmgr-1.0.4.3.2.tar.gz (9.6 kB view details)

Uploaded Source

File details

Details for the file itmgr-1.0.4.3.2.tar.gz.

File metadata

  • Download URL: itmgr-1.0.4.3.2.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.5

File hashes

Hashes for itmgr-1.0.4.3.2.tar.gz
Algorithm Hash digest
SHA256 b7c9e24b477e5b28b3d4e000ea9c028ce4ea0f2e93d7f42df9289f137a7dbfab
MD5 1171f673fedd82131f22a57d50370487
BLAKE2b-256 62c53982133863fb5d8cff727b4b6981006152792ae523c1e0070c2541bdb266

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