Nacos引擎Python客户端接入文档 查询配置 NacosClient.getconfig(dataid, group, timeout, nosnapshot) param dataid Data id. param group Group, use DEFAULTGROUP if no group specified. param timeout Timeout for requesting server in seconds. param nosnapshot Whether to use local snapshot while server is unavailable. return W Get value of one config item following priority: Step 1 从本地failover文件读取(default: ${cwd}/nacosdata/data). Failover dir can be manually copied from snapshot dir(default: ${cwd}/nacosdata/snapshot) in advance. This helps to suppress the effect of known server failure; Step 2 从任意远程服务节点读取 Content will be save to snapshot dir after got from server; Step 3 从 snapshot dir读取; 增加监听器 NacosClient.addconfigwatchers(dataid, group, cblist) param dataid Data id. param group Group, use DEFAULTGROUP if no group specified. param cblist List of callback functions to add. 删除监听器 NacosClient.removeconfigwatcher(dataid, group, cb, removeall) param dataid Data id. param group Group, use "DEFAULTGROUP" if no group specified. param cb Callback function to delete. param removeall Whether to remove all occurrence of the callback or just once. 发布配置 NacosClient.publishconfig(dataid, group, content, timeout) param dataid Data id. param group Group, use "DEFAULTGROUP" if no group specified. param content Config value. param timeout Timeout for requesting server in seconds. return True if success or an exception will be raised. 删除配置 NacosClient.removeconfig(dataid, group, timeout) param dataid Data id. param group Group, use "DEFAULTGROUP" if no group specified. param timeout Timeout for requesting server in seconds. return True if success or an exception will be raised.