🦀 ClawHub
Pywayne Helper
by @wangyendt
Project configuration management helper for YAML config files. Use when projects need cross-process/cross-file parameter sharing via a centralized config fil...
💡 Examples
from pywayne.helper import Helper初始化(自动检测调用者所在目录作为项目根目录)
helper = Helper()进程 A:写入配置
helper.set_module_value('database', 'host', value='127.0.0.1')进程 B:读取配置(自动等待直到值存在)
db_host = helper.get_module_value('database', 'host', max_waiting_time=10)
print(f"数据库主机: {db_host}")
TERMINAL
clawhub install helper