Skip to main content

This is a small Python utility which can import a package, or pip install first if the package does not exist.

Project description

Welcome

pip-importer is a small utility that can import a package, or pip install first if the package does not exist.

Installation

pip install pip-importer

Usage

from pip_importer import pip_import

# If the environment has pytest, this is same as `import pytest`.
# Otherwise, it will run `pip install pytest` then `import pytest`.
pytest = pip_import("pytest")

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

pip_importer-0.2.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

pip_importer-0.2.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file pip_importer-0.2.0.tar.gz.

File metadata

  • Download URL: pip_importer-0.2.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pip_importer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 21be7c4cc13bb524e4384f6f0eb28babfe3b4e6ec203ef91b212121ec60750a8
MD5 d981c7254e48e5fb178fc370242ec902
BLAKE2b-256 63ab4fa349312fd698bf6be8be76ad8afb0adb4538f786fecca7f6a5f82d1585

See more details on using hashes here.

Provenance

The following attestation bundles were made for pip_importer-0.2.0.tar.gz:

Publisher: deploy-to-pypi.yml on hktonylee/pip-importer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pip_importer-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pip_importer-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pip_importer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 884fecc8203b528fcd4c74470535b40ad1972692176267289b00dae7c371e68d
MD5 1df91554247946e735bb678d0a419168
BLAKE2b-256 b962f3152dbdf7ca87f437fe8dabb306f2deaba4fc3ec93923473e1e2a8aef1d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pip_importer-0.2.0-py3-none-any.whl:

Publisher: deploy-to-pypi.yml on hktonylee/pip-importer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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