从中心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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
mongodb查询的Java查询代码   java使用参数动态创建原型对象的实例   java增加Spring MVC服务器上HTML5音频的连接超时   java可以是一个很好的工具。NET 2.0 Web服务是否在缺少SoapAction时处理来自客户端的调用?   java这会使StringBuilder的使用变得多余吗?   使用Java配置和Spring Security 3.2的安全方法注释   java为什么在Spring MVC中对http缓存控制的支持较差?   java如何将包转换为单位   java listView不会从底部填充   使用Eureka服务器AWS Elastic Beanstalk注册java Eureka客户端   java将嵌套对象从fxml映射到对象   使用反射获取java注释   服务器重启期间的java Quartz调度程序