Python package reloader
Taken from Aleksandar Kocić's website. It unloads any specified python packages currently imported in Maya, Unreal Engine, or another DCC, and allows for a clean reimport.
As he notes, this should only be used in development, and should not be used in production code or tools.
Installation
Installing with pip
pip install unload_packages
Manual installation
Download the latest version from the releases page and extract the unload_packages folder to your Maya scripts directory. (e.g. C:\Users\username\Documents\maya\scripts)
Usage
In the Maya script editor, add this code to the top of your script:
from unload_packages import unload
unload(["my_package", "my_other_package"])
import my_package
import my_other_package
...
Metadata
Release files for unload-packages 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 |
|---|---|---|---|---|
| unload_packages-0.1.0.tar.gz | 3.2 kB | Without provenance | Details for unload_packages-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| unload_packages-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for unload_packages-0.1.0-py3-none-any.whl |
Total release size: 7.0 kB
Release files / unload_packages-0.1.0.tar.gz
| Download URL | unload_packages-0.1.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a0f9d25b52c494c2374f6068615168cf95302ac4ec7aa43665ba0cf8ed0a0ac6
|
|
BLAKE2b-256 checksum How to use checksums |
9b67f1019ed7bd4b0043abe162be8407c9c9469fa01d6fa03333933d123efb77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|
Release files / unload_packages-0.1.0-py3-none-any.whl
| Download URL | unload_packages-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9991179bd5708fa6bc93a2754021b0b6a6618eea417e40b9d3ca0726d16d0d7b
|
|
BLAKE2b-256 checksum How to use checksums |
2c87de03fa0d7bfbb448a74c8723dcbeaedd82e3eecee7adbd1aeda17fc348fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.13
|
Security for unload-packages 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.