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
Metadata
Release files for hot-import 3.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hot_import-3.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hot_import-3.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / hot_import-3.1.0.tar.gz
| Download URL | hot_import-3.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
752cede359ef865bec22066236e06e6f01d1e26317f7499852712c291ad221bc
|
|
BLAKE2b-256 checksum How to use checksums |
804db59afbc495bd88249468c5bdd2103e3e717ef81178ef170fc0783648596d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|
Release files / hot_import-3.1.0-py3-none-any.whl
| Download URL | hot_import-3.1.0-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aa1c7f95a1b67465e20626ffcaa6027fcf7a55549e7e5c322bb8a588f1279b39
|
|
BLAKE2b-256 checksum How to use checksums |
58304be63d9c984400782492e5423c990b3c09ebb48bffe3794348de622e78fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.11
|