{"repo":"promplate/hmr","free":true,"listed":false,"github":"https://github.com/promplate/hmr","clone":"git clone https://github.com/promplate/hmr.git","description":"Real hot-module reload for Python—side effects handled reactively. https://py3.online/hmr","language":"Python","stars":58,"topics":["hmr","hot-reload","reactive","uvicorn","reload","metaprogramming","mcp","mcp-server"],"license":null,"category":"mcp-servers","readme_excerpt":"HMR for Python [![PyPI - Version][pypi-version-badge]][pypi] [![PyPI - Downloads][pypi-downloads-badge]][pepy] [![Python Versions][python-versions-badge]][pyproject] [![PyPI - Status][pypi-status-badge]][repo] [![GitHub Created At][github-created-badge]][repo] [![GitHub commit activity][github-commits-badge]][commits-history] HMR provides a pythonic, flexible, progressive-yet-intuitive reactive programming engine / framework , and on top of that, a fine-grained, on-demand hot-reload tool . In Python, HMR stands for Hot Module Reload, though in JavaScript it commonly refers to [Hot Module Replacement][webpack-concepts-docs]—essentially the same concept. It is a feature that allows part of your app to be updated at runtime without a full rerun, without needing to restart the entire process. Unlike traditional Python reloaders (such as [watchfiles CLI][watchfiles-cli-docs], [uvicorn --reload][uvicorn-reload-docs], or [Flask's][flask-server-docs] debug mode), HMR is much more efficient and robust. These tools typically restart the entire process whenever a file changes, which is wasteful. HMR instead intelligently reruns only what's necessary, keeping your app state intact. https://github.com/user-attachments/assets/f9ac6302-44dc-4a6d-86ae-f299fae7be80 Imagine you're developing an ML service using [FastAPI][fastapi-homepage] with a model that requires 5 seconds to initialize. When using uvicorn --reload , any change—even updating a simple docstring—triggers a full process restart","default_branch":null,"files":null,"tree":[],"storefront":"/r/promplate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/promplate/hmr/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}