py-hot-reload


Namepy-hot-reload JSON
Version 1.0.6 PyPI version JSON
download
home_page
SummaryPython Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.
upload_time2023-05-13 20:12:02
maintainer
docs_urlNone
author
requires_python>=3.6
licenseMIT License Copyright (c) 2023 heppasoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords reload hot hot-reload hot_reload
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Hot Reload
Python Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.

## Installation

You can install the Python Hot Reload from [PyPI](https://pypi.org/project/py-hot-reload/):

    python -m pip install py-hot-reload

Python Hot Reload is supported on Python 3.6 and above.

## How to use

Python Hot Reload has a command line implementation called `py-hot-reload`. To see help message, call the program with `-h, --help`:

    $ py-hot-reload -h
    Usage: py-hot-reload [OPTIONS] PYTHON_FILE

    Options:
    -V, --version                   Show the version and exit.
    -C, --copyright                 Show the copyright and exit.
    -v, --verbose                   Verbose.
    -ep, --extra-patterns TEXT      Extra patterns
    -ip, --ignore-patterns TEXT     Ignore patterns
    -i, --interval INTEGER          Interval
    --add-current-folder-to-patterns
                                    Add current folder to patterns.
    --ignore-venv-and-python-lib    Ignore venv and python lib.
    -h, --help                      Show this message and exit.

To run ignoring certain patterns, run using `-ip, --ignore-patterns`:

    $ py-hot-reload -ip="*.txt;*/dir/*" <python-file>

To run with extra patterns, run using `-ep, --extra-patterns`:

    $ py-hot-reload -ep="*.txt;*/dir/*" <python-file>


You can also call the Python Hot Reload in your own Python code, by importing from the `py_hot_reload` package:
```Python
import py_hot_reload

def main():
    print(1)

py_hot_reload.run_with_reloader(main)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "py-hot-reload",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "reload,hot,hot-reload,hot_reload",
    "author": "",
    "author_email": "Heppa Soft <heppasoft@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/8a/1d/00e266e840ae1f73e8dcbf05174ba4f9cc08f37ec50b36eb09c829c6890a/py-hot-reload-1.0.6.tar.gz",
    "platform": null,
    "description": "# Python Hot Reload\nPython Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.\n\n## Installation\n\nYou can install the Python Hot Reload from [PyPI](https://pypi.org/project/py-hot-reload/):\n\n    python -m pip install py-hot-reload\n\nPython Hot Reload is supported on Python 3.6 and above.\n\n## How to use\n\nPython Hot Reload has a command line implementation called `py-hot-reload`. To see help message, call the program with `-h, --help`:\n\n    $ py-hot-reload -h\n    Usage: py-hot-reload [OPTIONS] PYTHON_FILE\n\n    Options:\n    -V, --version                   Show the version and exit.\n    -C, --copyright                 Show the copyright and exit.\n    -v, --verbose                   Verbose.\n    -ep, --extra-patterns TEXT      Extra patterns\n    -ip, --ignore-patterns TEXT     Ignore patterns\n    -i, --interval INTEGER          Interval\n    --add-current-folder-to-patterns\n                                    Add current folder to patterns.\n    --ignore-venv-and-python-lib    Ignore venv and python lib.\n    -h, --help                      Show this message and exit.\n\nTo run ignoring certain patterns, run using `-ip, --ignore-patterns`:\n\n    $ py-hot-reload -ip=\"*.txt;*/dir/*\" <python-file>\n\nTo run with extra patterns, run using `-ep, --extra-patterns`:\n\n    $ py-hot-reload -ep=\"*.txt;*/dir/*\" <python-file>\n\n\nYou can also call the Python Hot Reload in your own Python code, by importing from the `py_hot_reload` package:\n```Python\nimport py_hot_reload\n\ndef main():\n    print(1)\n\npy_hot_reload.run_with_reloader(main)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 heppasoft  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Python Hot Reload starts the given program and reloads it whenever any file changes in the current directory or imported modules.",
    "version": "1.0.6",
    "project_urls": {
        "Bug Tracker": "https://github.com/heppasoft/hot-reload/issues",
        "Homepage": "https://github.com/heppasoft/hot-reload"
    },
    "split_keywords": [
        "reload",
        "hot",
        "hot-reload",
        "hot_reload"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "28c6fd1ee112b2d7618b554d9b0752ac053456b90140e25a61ab037de79863d9",
                "md5": "1f8029f1420c2269274ede7e30cf7970",
                "sha256": "d9a77538033e31ec3e633a1e3af0d4da4897916cf229b213e748d36f6cf3dfe0"
            },
            "downloads": -1,
            "filename": "py_hot_reload-1.0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1f8029f1420c2269274ede7e30cf7970",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 9250,
            "upload_time": "2023-05-13T20:12:00",
            "upload_time_iso_8601": "2023-05-13T20:12:00.902410Z",
            "url": "https://files.pythonhosted.org/packages/28/c6/fd1ee112b2d7618b554d9b0752ac053456b90140e25a61ab037de79863d9/py_hot_reload-1.0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8a1d00e266e840ae1f73e8dcbf05174ba4f9cc08f37ec50b36eb09c829c6890a",
                "md5": "e5f8de17624d8c9c80066733f0fc5993",
                "sha256": "09ef5ac863d0b2b776346527b3507751cdde4980dfda6504f7fcd451bab96905"
            },
            "downloads": -1,
            "filename": "py-hot-reload-1.0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "e5f8de17624d8c9c80066733f0fc5993",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 9388,
            "upload_time": "2023-05-13T20:12:02",
            "upload_time_iso_8601": "2023-05-13T20:12:02.802631Z",
            "url": "https://files.pythonhosted.org/packages/8a/1d/00e266e840ae1f73e8dcbf05174ba4f9cc08f37ec50b36eb09c829c6890a/py-hot-reload-1.0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-13 20:12:02",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "heppasoft",
    "github_project": "hot-reload",
    "github_not_found": true,
    "lcname": "py-hot-reload"
}
        
Elapsed time: 1.26327s