# 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
```python
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 :
```bash
itmgr add lib_name link_to_install
```
You can of course delete a link by using this line in your console :
```bash
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 :
```python
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
- [ȻλƧṨʆʃłคи](https://github.com/Cassssian)
Raw data
{
"_id": null,
"home_page": "https://github.com/Casssian/itmgr",
"name": "itmgr",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": "Cassssian <enzod1604@gmail.com>",
"keywords": "import, importations, development, package-manager, module-manager, dynamic-import, pip-wrapper, dependency-management, python-imports, import-automation, package-installer, module-installer, import-helper, development-tools, python-utilities, package-management, module-handling, import-handling, dependency-installer, python-modules, import-utilities",
"author": "Cassssian",
"author_email": "Cassssian <enzod1604@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/62/c5/3982133863fb5d8cff727b4b6981006152792ae523c1e0070c2541bdb266/itmgr-1.0.4.3.2.tar.gz",
"platform": null,
"description": "# itmgr\r\nAn import manager that allow you to manage easily your importations in your project\r\n\r\n # Installation\r\n You can install it using pip:\r\n ```\r\n pip install itmgr\r\n ```\r\n\r\n# Usage\r\n```python\r\nfrom itmgr import * #Or use : install_and_import, importation, install, uninstall, remove_module, check_latest_version\r\n\r\n# And write your importations and your code below\r\n\r\n# Example :\r\n\r\ninstall_and_import((\"os\", True, False, False)) # Import os module as an \"import os\" statement without an update check\r\n\r\nimportation((\"PIL.Image\", True, \"Image\", False)) # Import PIL.Image module as an \"from PIL import Image as Image\" statement without an update check\r\n\r\nif not os.path.exists(\"image.png\"): # Check if the image.png file exists\r\n Image.new(\"RGB\", (100, 100), (255, 255, 255)).save(\"image.png\") # Create a new image and save it as image.png\r\n\r\nImage.open(\"image.png\").show() # Open the image.png file\r\n```\r\n\r\nYou can also add link between libs for importation and installations by using this line in your console : \r\n```bash\r\nitmgr add lib_name link_to_install\r\n```\r\n\r\nYou can of course delete a link by using this line in your console :\r\n```bash\r\nitmgr del link1 *or* itmgr del link2\r\n```\r\n- *link1* and *link2* are the links you want to delete\r\n\r\n\r\nYou can of course use these functions in your code :\r\n```python\r\nfrom itmgr import add, delete # delete function in code is link to del function in console for itmgr\r\nadd(lib_name, link_to_install)\r\ndelete(link1 *or* link2)\r\n```\r\n\r\n\r\n**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.** \r\n\r\n# Contributing\r\nThe contributions are welcome ! You can contribute by adding new features, fixing bugs, improving the documentation and code, etc.\r\n\r\n# Author\r\n- [\u023b\u03bb\u01a7\u1e68\u0286\u0283\u0142\u0e04\u0438](https://github.com/Cassssian)\r\n",
"bugtrack_url": null,
"license": null,
"summary": "An import manager that allow you to manage easily your importations in your project",
"version": "1.0.4.3.2",
"project_urls": {
"Author": "https://github.com/Cassssian",
"Bug Reports": "https://github.com/Cassssian/itmgr",
"Changelog": "https://github.com/Cassssian/itmgr",
"Documentation": "https://github.com/Cassssian/itmgr",
"Homepage": "https://github.com/Cassssian/itmgr",
"Issues": "https://github.com/Cassssian/itmgr/issues",
"Repository": "https://github.com/Cassssian/itmgr.git",
"Say Thanks!": "https://github.com/Cassssian/itmgr",
"Source": "https://github.com/Cassssian/itmgr/"
},
"split_keywords": [
"import",
" importations",
" development",
" package-manager",
" module-manager",
" dynamic-import",
" pip-wrapper",
" dependency-management",
" python-imports",
" import-automation",
" package-installer",
" module-installer",
" import-helper",
" development-tools",
" python-utilities",
" package-management",
" module-handling",
" import-handling",
" dependency-installer",
" python-modules",
" import-utilities"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "62c53982133863fb5d8cff727b4b6981006152792ae523c1e0070c2541bdb266",
"md5": "1171f673fedd82131f22a57d50370487",
"sha256": "b7c9e24b477e5b28b3d4e000ea9c028ce4ea0f2e93d7f42df9289f137a7dbfab"
},
"downloads": -1,
"filename": "itmgr-1.0.4.3.2.tar.gz",
"has_sig": false,
"md5_digest": "1171f673fedd82131f22a57d50370487",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 9643,
"upload_time": "2024-12-30T00:46:12",
"upload_time_iso_8601": "2024-12-30T00:46:12.830146Z",
"url": "https://files.pythonhosted.org/packages/62/c5/3982133863fb5d8cff727b4b6981006152792ae523c1e0070c2541bdb266/itmgr-1.0.4.3.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-30 00:46:12",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Casssian",
"github_project": "itmgr",
"github_not_found": true,
"lcname": "itmgr"
}