从中心8 PLM系统运行查询和检索数据。
Centric8Python的Python项目详细描述
Centric 8 Python提供一个python接口来查询数据并在 中心8 plm系统。您可能会发现它对于创建报告或导入之类的任务很有用 以及导出数据。
工作原理
典型的Centric 8 Python用法通常如下:
import centric8python.client as client # Create a session using a PLM username and password. host = 'https://plm.mydomain.com' user = 'joes account' password = 'joes password' req = client.Client(host=host) req.create_session_with_user(user=user, password=password) # Set up the query and parameters. query = ''' <Node Parameter="Type" Op="EQ" Value="Style" /> ''' parameters = {'Qry.Limit.Begin': 1, 'Qry.Limit.End': 10, 'Dep.Path': ['__Parent__', 'Images;Attributes;'] } # Execute the query on the PLM server. result = req.query_by_xml(query, parameters=parameters) # Close the session. req.destroy_session()
安装
使用pip:
pip install centric8python