pylibimp
Python utility for keeping track of packages that were imported and isolating imports.
Install
pip install pylibimp
Example
Normal Import Hook to save an imports dependent modules
import pylibimp
with pylibimp.SaveBuiltinsImportHook() as imp:
import pylibimp
import urllib3
modules = imp.get_modules()
assert 'pylibimp' in modules
assert 'urllib3' in modules
Import a module but keep the original system
import sys
import pylibimp
modules = sys.modules.copy()
with pylibimp.original_system():
import urllib3
assert 'urllib3' not in modules
Metadata
Release files for pylibimp 1.0.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 | Provenance | Actions |
|---|---|---|---|---|
| pylibimp-1.0.1.tar.gz | 4.9 kB | Without provenance | Details for pylibimp-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pylibimp-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for pylibimp-1.0.1-py3-none-any.whl |
Total release size: 16.1 kB
Release files / pylibimp-1.0.1.tar.gz
| Download URL | pylibimp-1.0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b24562b1c055bf364caf5c3b71f03b693b05ebc1e57cf0e3c791bd0fc4e183a6
|
|
BLAKE2b-256 checksum How to use checksums |
2e18b69751d8ba4e1f4da5c2e51824c7d963f3703ad3666a1061e485b4c12b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
|
Release files / pylibimp-1.0.1-py3-none-any.whl
| Download URL | pylibimp-1.0.1-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
90207071c65f966f96d06b7bf5a8ca37b42856bc7736774a888e508e876d888b
|
|
BLAKE2b-256 checksum How to use checksums |
f158a67a4e0394410ec014eabf591c2e45946c9120eb5468bc0ea02709e2622c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.8
|
Security for pylibimp 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.