Skip to main content

Automatic replacement of imported Python modules.

The hotswap module watches the source files of imported modules which are replaced by its new version when the respective source files change. The need for a program restart during development of long-running programs like GUI applications for example is reduced.

Additionally this module can be called as a wrapper script: hotswap.py [OPTIONS] <module.py> [args]

In this case module.py is imported as module and the function module.main() is called. Hotswapping is enabled so that changes in the source code take effect without restarting the program.

Release history Release notifications | RSS feed

This release

0.1 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page