pippity
Install your PyPi packages without access to pip. Install packages, straight from inside your script.
Installation
To install pippity, just run the following command in a shell with access to python/pip:
pip install pippity
Documentation
Using pippity to install packages from PyPi is really easy!
import pippity
result = pippity.install("numpy")
# Returns an InstallResult object.
print(result.ok) # Boolean value, whether it installed correctly or not.
print(result.stdout) # pip's stdout
print(result.stderr) # pip's stderr
Or, if you want to install multiple packages:
import pippity
result = pippity.install(["flask", "uvicorn"])
print(result.ok)
print(result.stdout)
print(result.stderr)
You can use this at the start of a script, for example:
import pippity
import sys
try:
import package1
import package2
import package3
except ImportError:
print("Packages not detected. Installing now...")
result = pippity.install(["package1", "package2", "package3"])
if result.ok:
print("Packages installed successfully!")
import package1
import package2
import package3
else:
print("Packages failed to install. STDERR:")
print(result.stderr)
sys.exit(1)
Release files for pippity 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pippity-1.2.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pippity-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / pippity-1.2.1.tar.gz
| Download URL | pippity-1.2.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c51875d7ffa7b04ee8004ccf3a087f2a4925745b693f4074a9cde1b258fb5be
|
|
BLAKE2b-256 checksum How to use checksums |
22cfb5f682777279eb96a3cf14b37ee89f04a6d37911cf956ebd7398fd94d882
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / pippity-1.2.1-py3-none-any.whl
| Download URL | pippity-1.2.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a1f6df04bb5eb3100218b0757392bab3a2ece1d4dc6cb2feee108b3c90179e87
|
|
BLAKE2b-256 checksum How to use checksums |
daaa4800fe29edf5b24c30329a38eb80968bc8330e9f265d0c2d6e1dc6c499cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|