hot-reload for python packages
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hot-import-3.0.0.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for hot_import-3.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1af353e6840ecafda1b2151912b5e1f49352ba81e0a19eeb0fe8d6a18f4c02b2 |
|
MD5 | 60de8905930d8669dc54353b6b2c269c |
|
BLAKE2b-256 | 7cd0a71bdc28c28a436dbcef5401f50360518b7d98a4541fade19af5a7cf75b7 |