# **HOW TO USE?**
```py
import test_import
...
mods = HotImport([test_import]) # Update all the 'test_import' module
```
```py
from test_import import say_hello
... #
mods = HotImport([say_hello]) # Update only the 'test_import.say_hello' function and the 'say_hello' function
```
```py
from test_import import TestClass as TC
...
mods = HotImport([TC]) # Update all the 'TestClass' class and 'TC'
```
### Warning !
If you have :
```py
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
Raw data
{
"_id": null,
"home_page": "https://github.com/ThePhoenix78/hot-import",
"name": "hot-import",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "hot-reload, live reload, live update, hot reload",
"author": "ThePoenix78, GalTech",
"author_email": "thephoenix788@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/f9/d2/6a4c9c882033ac33977d3b26e8e349833d01eaaad2b6196093e28f127a79/hot-import-3.0.0.tar.gz",
"platform": null,
"description": "# **HOW TO USE?**\r\n\r\n```py\r\nimport test_import\r\n...\r\nmods = HotImport([test_import]) # Update all the 'test_import' module\r\n```\r\n\r\n```py\r\nfrom test_import import say_hello\r\n... # \r\nmods = HotImport([say_hello]) # Update only the 'test_import.say_hello' function and the 'say_hello' function\r\n```\r\n```py\r\nfrom test_import import TestClass as TC\r\n...\r\nmods = HotImport([TC]) # Update all the 'TestClass' class and 'TC'\r\n```\r\n\r\n### Warning !\r\nIf you have : \r\n```py\r\nt = TC()\r\n```\r\nThen after the update `t.function()` will be the old one, you can access the new version only by using `TC.function(t)`\r\n\r\n## DISCLAIMER\r\n\r\nThis library is new and may contain some errors\r\n\r\nOtherwise, have fun with it as long as you declare my work\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "hot-reload for python packages",
"version": "3.0.0",
"project_urls": {
"Download": "https://github.com/ThePhoenix78/hot-import/tarball/master",
"Homepage": "https://github.com/ThePhoenix78/hot-import"
},
"split_keywords": [
"hot-reload",
" live reload",
" live update",
" hot reload"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7cd0a71bdc28c28a436dbcef5401f50360518b7d98a4541fade19af5a7cf75b7",
"md5": "60de8905930d8669dc54353b6b2c269c",
"sha256": "1af353e6840ecafda1b2151912b5e1f49352ba81e0a19eeb0fe8d6a18f4c02b2"
},
"downloads": -1,
"filename": "hot_import-3.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "60de8905930d8669dc54353b6b2c269c",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 5222,
"upload_time": "2024-05-12T22:08:57",
"upload_time_iso_8601": "2024-05-12T22:08:57.754192Z",
"url": "https://files.pythonhosted.org/packages/7c/d0/a71bdc28c28a436dbcef5401f50360518b7d98a4541fade19af5a7cf75b7/hot_import-3.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "f9d26a4c9c882033ac33977d3b26e8e349833d01eaaad2b6196093e28f127a79",
"md5": "80b1eabc23093db15ea38668860af5de",
"sha256": "ec3e4723c579f8a988a6f75ba1d89861169b0257cf047900502276aa3d1764c0"
},
"downloads": -1,
"filename": "hot-import-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "80b1eabc23093db15ea38668860af5de",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 4677,
"upload_time": "2024-05-12T22:08:59",
"upload_time_iso_8601": "2024-05-12T22:08:59.262525Z",
"url": "https://files.pythonhosted.org/packages/f9/d2/6a4c9c882033ac33977d3b26e8e349833d01eaaad2b6196093e28f127a79/hot-import-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-12 22:08:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ThePhoenix78",
"github_project": "hot-import",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "hot-import"
}