🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

hot-import

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hot-import

hot-reload for python packages

3.1.0
Maintainers
2

HOW TO USE?

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

Warning !

If you have :

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

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts