Skip to main content

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)

Source distribution for unload-packages 0.1.0
File Size Uploaded
unload_packages-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for unload-packages 0.1.0
File Interpreter ABI Platform
unload_packages-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page