Metadata-Version: 2.1
Name: unload_packages
Version: 0.1.0
Summary: Simple package reloader for Maya, Unreal, or other DCCs.
Author-email: Gabe Reed <gabrieljreed@gmail.com>
License: MIT License
        
        Copyright (c) 2024 Gabriel Reed
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/gabrieljreed/PythonPackageReloader
Project-URL: Bug Tracker, https://github.com/gabrieljreed/PythonPackageReloader/issues
Requires-Python: >=2.7.0
Description-Content-Type: text/markdown
License-File: LICENSE

# Python package reloader

Taken from Aleksandar Kocić's [website](https://www.aleksandarkocic.com/2020/12/19/live-reload-your-python-code-in-maya/).
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

```bash
pip install unload_packages
```

### Manual installation

Download the latest version from the [releases page](https://github.com/gabrieljreed/PythonPackageReloader/releases) 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:

```python
from unload_packages import unload
unload(["my_package", "my_other_package"])

import my_package
import my_other_package
...
```
