Skip to main content

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") — install lib from manager manager as auto_import.
  • uninstall(lib: str, manager: Literal["poetry", "pip", "conda"]) — uninstall lib.
  • import_all(sd: bool = False) — import all files from the root. If sd is true, then import all files from the subdirs too.
  • all — a variable with all useful packages.
  • venv() — initialize venv.

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

PyPI-Installer-1.0.1.tar.gz (1.4 kB view hashes)

Uploaded Source

Built Distribution

PyPI_Installer-1.0.1-py3-none-any.whl (1.8 kB view hashes)

Uploaded Python 3

Supported by

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