acm-sdk-python
acm-sdk-python copied to clipboard
ModuleNotFoundError: No module named 'fcntl'
python 3.6 使用 import acm
ENDPOINT = "acm.aliyun.com:8080" NAMESPACE = "base-dev" AK = "××××××××××" SK = "×××××××××××××××××"
get config
client = acm.ACMClient(ENDPOINT, NAMESPACE, AK, SK) data_id = "cn.jfhealthcare.devops:opssampler.ini" group = "DEFAULT_GROUP"
add watch
#import time #client.add_watcher(data_id, group, lambda x:print("config change detected: " + x)) #time.sleep(5) # wait for config changes
if(name=='main'): print(client.get(data_id, group)) #client.list_all()