Metadata-Version: 2.4
Name: pip-importer
Version: 0.2.0
Summary: This is a small Python utility which can import a package, or pip install first if the package does not exist.
Author-email: Tony Lee <iamtonylee@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/hktonylee/pip-importer
Project-URL: Repository, https://github.com/hktonylee/pip-importer
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 3 - Alpha
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"

# Welcome

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


#  Installation

```bash
pip install pip-importer
```

# Usage

```python
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")
```
