Metadata-Version: 2.1
Name: hot-import
Version: 3.0.0
Summary: hot-reload for python packages
Home-page: https://github.com/ThePhoenix78/hot-import
Download-URL: https://github.com/ThePhoenix78/hot-import/tarball/master
Author: ThePoenix78, GalTech
Author-email: thephoenix788@gmail.com
License: MIT
Keywords: hot-reload,live reload,live update,hot reload
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE

# **HOW TO USE?**

```py
import test_import
...
mods = HotImport([test_import]) # Update all the 'test_import' module
```

```py
from test_import import say_hello
... #                                                                                        
mods = HotImport([say_hello]) # Update only the 'test_import.say_hello' function and the 'say_hello' function
```
```py
from test_import import TestClass as TC
...
mods = HotImport([TC]) # Update all the 'TestClass' class and 'TC'
```

### Warning !
If you have : 
```py
t = TC()
```
Then after the update `t.function()` will be the old one, you can access the new version only by using `TC.function(t)`

## DISCLAIMER

This library is new and may contain some errors

Otherwise, have fun with it as long as you declare my work
