Delphix客户端绑定
delphixp的Python项目详细描述
DelphixPy是一组自动生成的PythonAPI包装器,用于 Delphix虚拟化引擎。
用法
# Simple script to refresh a Databasefromdelphixpy.delphix_engineimportDelphixEngineengine=DelphixEngine("delphix-address","delphix-user","delphix-password","DOMAIN",# Instead of DOMAIN, use SYSTEM if you are using the sysadmin user.use_https=True,# Connect through HTTPS instead of default HTTP)database.refresh(engine,"ORACLE_DB_CONTAINER-3")
更多的例子可以在DelphixPy Examples Repository
支持的API版本
Delphixpy支持Delphix引擎版本4.0.0.x或同等版本 运行API版本1.3.0和更高版本的Delphix引擎。
变更日志
1.10.5
- python3.7引入了向后不兼容的语法,该语法会中断 Delphixpy,以适应作业上下文。async函数 重命名为作业上下文。异步。
- 放弃对旧于4.1的Delphix引擎的支持。API版本:1.3.0、1.3.1、1.3.2、1.3.3
1.10.3
- api对象现在在python3中是散列的
- 未定义的对象现在在修改其属性时会引发错误
- 各种错误修复
1.10.2
python3兼容性。python2和python3都受支持 现在。python2包装器现在要求所有字符串都是 输入unicode,python3包装器现在需要 字符串类型为str。
这可能会导致现有代码的回归: 断言错误:应为[u'string']之一,但得到了<;type'str'>;支持https
各种速度改进