Skip to main content

No project description provided

Project description

# 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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyhot-1.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file pyhot-1.0.1.tar.gz.

File metadata

  • Download URL: pyhot-1.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.6

File hashes

Hashes for pyhot-1.0.1.tar.gz
Algorithm Hash digest
SHA256 d02c34568ef7e0418e0b1c81b105884d4fc1527271c17824cabcfe7799e0e104
MD5 18f3baca479ed14d581000cc7979607d
BLAKE2b-256 64f81cd3f7cd63c62beb4cfef968c03e318ae2d5d2cc6f02a89397379f678dd2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page