Skip to main content

# hotpy 热更python的class对象 已经存在的也会更新已有的属性和函数,没有则会添加新的class的属性和函数

已提供pip安装 项目中引用即可 pip install hotpy

# 使用方法 参考main.py 和 test,py ## 方法一 在需要热更的类中继承hotpy.HotObj 调用hotpy.hot_mgr.hot(mod_name) 会热更mod和它里面的类对象 ![](https://github.com/huangwenzi/hotpy/blob/main/img/hotpy_test.gif)

## 方法二(推荐) 初始化调用 pyhot.hot_mgr.init_file_record()

需要更新的时候再调用 pyhot.hot_mgr.hot_all() 会自动更新项目下的全部文件

不需要更新全部文件也可以继续用 hotpy.hot_mgr.hot(mod_name)

Release files for pyhot 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyhot 1.0.1
File Size Uploaded
pyhot-1.0.1.tar.gz 3.5 kB Details

Release files / pyhot-1.0.1.tar.gz

Download URL pyhot-1.0.1.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d02c34568ef7e0418e0b1c81b105884d4fc1527271c17824cabcfe7799e0e104
BLAKE2b-256 checksum
How to use checksums
64f81cd3f7cd63c62beb4cfef968c03e318ae2d5d2cc6f02a89397379f678dd2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.6

Release history Release notifications | RSS feed

This release

1.0.1 This release

1 release file

1.0.0

1 release file

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