Skip to main content

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)

Uploaded Source

Built Distribution

hot_import-3.0.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page