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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for PyPI-Installer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 7ea8b129f42e017b7e9e44301d05ec18d407c47cb456d847fafd3fbb8a200b7f
MD5 d256a13795e16309f955f4b78f8c32ab
BLAKE2b-256 442528a2aabf30525eb3396e3ed4bce939449f02536d96a6600419dbd893ea33

See more details on using hashes here.

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

Hashes for PyPI_Installer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3a06cc06b14927243116fd9d5e9e36ef7e6d3c0751129bb63f79e98b1b5b4808
MD5 f102fcd46f23521fe90c7943235b2a7d
BLAKE2b-256 45e4f624587d1b45decee1f27c9b8eee638d285c27cfe1e1bf1a51a36ec8b73d

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