hmr 0.5.2__tar.gz → 0.5.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
hmr-0.5.2.1/PKG-INFO ADDED
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.1
2
+ Name: hmr
3
+ Version: 0.5.2.1
4
+ Summary: Hot Module Reload for Python
5
+ Project-URL: repository, https://github.com/promplate/pyth-on-line/tree/reactivity
6
+ Requires-Python: >=3.12
7
+ Requires-Dist: watchfiles<2,>=0.21; sys_platform != "emscripten"
8
+ Description-Content-Type: text/markdown
9
+
10
+ <div align="center">
11
+
12
+ # HMR for Python
13
+
14
+ <sup> on-demand · fine-grained · pull-push reactivity </sup>
15
+
16
+ [![PyPI - Version](https://img.shields.io/pypi/v/hmr)](https://pypi.org/project/hmr/)
17
+ [![Supported Python Version](https://img.shields.io/python/required-version-toml?tomlFilePath=https://github.com/promplate/pyth-on-line/raw/refs/heads/reactivity/packages/hmr/pyproject.toml)](https://github.com/promplate/pyth-on-line/blob/reactivity/packages/hmr/pyproject.toml)
18
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/hmr)](https://pepy.tech/projects/hmr)
19
+
20
+ </div>
21
+
22
+ HMR means Hot Module Reload / [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/). It is a feature that allows part of your app to be updated at runtime without a full rerun.
23
+
24
+ - The module whose source file **you changed** will rerun
25
+ - The module / function that **depend on** the changed module will rerun
26
+ - Other modules that are unaffected (like third-party libraries) will not rerun
27
+
28
+ Thus, in contrast to the traditional way of **cold-reloading** Python applications (like [watchfiles CLI](https://watchfiles.helpmanual.io/cli/)), HMR is just more efficient.
29
+
30
+ Unlike static-analysis tools like [Tach](https://github.com/gauge-sh/tach), HMR works by tracking the dependencies between names and modules **during runtime** through a [reactive system](https://wikipedia.org/wiki/Reactive_programming).
31
+
32
+ ## Usage
33
+
34
+ If you are running your entry file with `python foo.py bar baz ...`, you can just replace it with `hmr foo.py bar baz ...`.
35
+
36
+ You can also try it with `uvx` or `pipx`. If you are using a virtual environment, it is recommended to install `hmr` in the virtual environment instead of globally.
hmr-0.5.2.1/README.md ADDED
@@ -0,0 +1,27 @@
1
+ <div align="center">
2
+
3
+ # HMR for Python
4
+
5
+ <sup> on-demand · fine-grained · pull-push reactivity </sup>
6
+
7
+ [![PyPI - Version](https://img.shields.io/pypi/v/hmr)](https://pypi.org/project/hmr/)
8
+ [![Supported Python Version](https://img.shields.io/python/required-version-toml?tomlFilePath=https://github.com/promplate/pyth-on-line/raw/refs/heads/reactivity/packages/hmr/pyproject.toml)](https://github.com/promplate/pyth-on-line/blob/reactivity/packages/hmr/pyproject.toml)
9
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/hmr)](https://pepy.tech/projects/hmr)
10
+
11
+ </div>
12
+
13
+ HMR means Hot Module Reload / [Hot Module Replacement](https://webpack.js.org/concepts/hot-module-replacement/). It is a feature that allows part of your app to be updated at runtime without a full rerun.
14
+
15
+ - The module whose source file **you changed** will rerun
16
+ - The module / function that **depend on** the changed module will rerun
17
+ - Other modules that are unaffected (like third-party libraries) will not rerun
18
+
19
+ Thus, in contrast to the traditional way of **cold-reloading** Python applications (like [watchfiles CLI](https://watchfiles.helpmanual.io/cli/)), HMR is just more efficient.
20
+
21
+ Unlike static-analysis tools like [Tach](https://github.com/gauge-sh/tach), HMR works by tracking the dependencies between names and modules **during runtime** through a [reactive system](https://wikipedia.org/wiki/Reactive_programming).
22
+
23
+ ## Usage
24
+
25
+ If you are running your entry file with `python foo.py bar baz ...`, you can just replace it with `hmr foo.py bar baz ...`.
26
+
27
+ You can also try it with `uvx` or `pipx`. If you are using a virtual environment, it is recommended to install `hmr` in the virtual environment instead of globally.
@@ -1,12 +1,13 @@
1
1
  [project]
2
2
  name = "hmr"
3
+ readme = "README.md"
3
4
  dynamic = []
4
5
  requires-python = ">=3.12"
5
6
  description = "Hot Module Reload for Python"
6
7
  dependencies = [
7
8
  "watchfiles>=0.21,<2 ; sys_platform != 'emscripten'",
8
9
  ]
9
- version = "0.5.2"
10
+ version = "0.5.2.1"
10
11
 
11
12
  [project.scripts]
12
13
  hmr = "reactivity.hmr:cli"
@@ -341,4 +341,4 @@ def cli():
341
341
  reloader.keep_watching_until_interrupt()
342
342
 
343
343
 
344
- __version__ = "0.5.2"
344
+ __version__ = "0.5.2.1"
hmr-0.5.2/PKG-INFO DELETED
@@ -1,8 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: hmr
3
- Version: 0.5.2
4
- Summary: Hot Module Reload for Python
5
- Project-URL: repository, https://github.com/promplate/pyth-on-line/tree/reactivity
6
- Requires-Python: >=3.12
7
- Requires-Dist: watchfiles<2,>=0.21; sys_platform != "emscripten"
8
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes