importmagician
Voldemort's Python import helper
pip install importmagician
Import from uninstalled Python directories
Say you have a directory (relative path ../../dir_a) like this:
├── ../../dir_a
├── utils
│ ├── util_a.py
│ └── ...
└── ...
You want func_a from utils.util_a.py:
from importmagician import import_from
with import_from('../../'):
from utils.util_a import func_a
func_a() # use func_a
The advantage of importmagician is: outside of the with statement, your sys.path remains unchanged.
Metadata
Release files for importmagician 0.1.0
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 |
|---|---|---|---|---|
| importmagician-0.1.0.tar.gz | 2.6 kB | Without provenance | Details for importmagician-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| importmagician-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for importmagician-0.1.0-py3-none-any.whl |
Total release size: 5.7 kB
Release files / importmagician-0.1.0.tar.gz
| Download URL | importmagician-0.1.0.tar.gz |
|---|---|
| Size | 2.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d53d008232b17cbd964417cc998fe834fb9e4ef2806fb4208a3715f384ce7a4
|
|
BLAKE2b-256 checksum How to use checksums |
6d841bc7051205d98a7833bab24656687c13429a94056b6d95eca548eddd8bdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.12
|
Release files / importmagician-0.1.0-py3-none-any.whl
| Download URL | importmagician-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e896947b69d0a5c334ed93b124ec181e285dca3b89b8501a9e58f350ebeb5629
|
|
BLAKE2b-256 checksum How to use checksums |
bc836369295498a9d36a63ba9fb406b14fd7c42fffe92d2e4585d092bd1dc045
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.12
|
Security for importmagician 0.1.0
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.