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")— installlibfrom managermanagerasauto_import.uninstall(lib: str, manager: Literal["poetry", "pip", "conda"])— uninstalllib.import_all(sd: bool = False)— import all files from the root. Ifsdis 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file PyPI-Installer-1.0.1.tar.gz.
File metadata
- Download URL: PyPI-Installer-1.0.1.tar.gz
- Upload date:
- Size: 1.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ea8b129f42e017b7e9e44301d05ec18d407c47cb456d847fafd3fbb8a200b7f
|
|
| MD5 |
d256a13795e16309f955f4b78f8c32ab
|
|
| BLAKE2b-256 |
442528a2aabf30525eb3396e3ed4bce939449f02536d96a6600419dbd893ea33
|
File details
Details for the file PyPI_Installer-1.0.1-py3-none-any.whl.
File metadata
- Download URL: PyPI_Installer-1.0.1-py3-none-any.whl
- Upload date:
- Size: 1.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a06cc06b14927243116fd9d5e9e36ef7e6d3c0751129bb63f79e98b1b5b4808
|
|
| MD5 |
f102fcd46f23521fe90c7943235b2a7d
|
|
| BLAKE2b-256 |
45e4f624587d1b45decee1f27c9b8eee638d285c27cfe1e1bf1a51a36ec8b73d
|