A small module for dynamic importing Python packages
Project description
PyPi-installer
PyPi-installer is a dynamic package installer in Python that allows you to easily install packages from the Python Package Index (PyPI). It provides a convenient way to manage dependencies and install packages directly in pure Python. With PyPi-installer, you can easily install, upgrade, and remove packages with just a few simple functions with package managers like conda and pip.
To use PyPi-installer, you need to have Python and pip installed on your system. Once you have those dependencies set up, you can install PyPi-installer itself by running the following command: pip install pypi-installer
. Or you can clone repository from GitHub.
Then use:
import pypi_installer as ppi
ppi.install("pyqt6")
All functions in my module:
install(lib: str, auto_import: Union[str, bool] = False, manager: Literal["poetry", "conda", "pip"] = "pip")
— installlib
from managermanager
asauto_import
.uninstall(lib: str, manager: Literal["poetry", "pip", "conda"])
— uninstalllib
.import_all(sd: bool = False)
— import all files from the root. Ifsd
is true, then import all files from the subdirs too.all
— a variable with all useful packages.venv()
— initialize venv.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for PyPI_Installer-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3a06cc06b14927243116fd9d5e9e36ef7e6d3c0751129bb63f79e98b1b5b4808 |
|
MD5 | f102fcd46f23521fe90c7943235b2a7d |
|
BLAKE2b-256 | 45e4f624587d1b45decee1f27c9b8eee638d285c27cfe1e1bf1a51a36ec8b73d |