跳转到主要内容

nexiles.tools.api -- python nexiles Windchill gateway http客户端api

项目描述

http://nexiles.github.io/nexiles.tools.api/_static/gateway-logo.svg
作者

Stefan Eletzhofer, nexiles GmbH

日期

2024-02-27

版本

0.5.1

许可证

BSD

摘要

这是nexiles GmbH的Windchill API的python HTTP API客户端的仓库。

功能

  • 查询

  • 读取和写入IBA属性

  • 上传和下载内容

  • 创建和删除业务对象(WTPart、WTDocument、产品)

  • 部件和EPM文档的使用、被使用、引用导航

  • 类型信息查询

  • 团队、角色、用户查询

  • 无需InfoEngine许可证!

支持的业务对象

名称

业务对象

可用的操作

组织

wt.inf.Organization

产品

wt.pdm.PDMLinkProduct

容器属性部件文档epmdocuments

wt.inf.library.WTLibrary

容器属性部件文档epmdocuments

项目

wt.projmgmt.admin.Project2

容器属性部件文档epmdocuments工作包

柜子

wt.folder.Cabinet

文件夹

wt.folder.SubFolder

epmdocuments

wt.epm.EPMDocument

容器属性历史内容使用引用被使用

部件

wt.part.WTPart

容器属性历史内容使用

文档

wt.doc.WTDocument

容器属性历史内容

团队

wt.inf.team.ContainerTeam

参与者角色

分组

wt.org.WTGroup

成员

用户

wt.org.WTUser

类型

com.ptc.core.meta.type.mgmt.server.impl.WTTypeDefinition

属性名称

报告

wt.query.template.ReportTemplate

执行

工作包

com.ptc.windchill.wp.WorkPackage

内容容器属性

使用示例

例如,获取所有与特定数量匹配的 WTDocuments

>>> from nexiles.tools.api import get_api
>>> api = get_api("http://www.example.com/Windchill", username="fred", password="kaputnik")
>>> docs = api.documents(number="1003*")

获取由其 OID 标识的特定文档

>>> doc = api.document("OR:wt.doc.WTDocument:2342344")
>>> doc.name, doc.number, doc.version
u'Test Document', u'12345345', u'A.3'

获取 PRIMARY CONTENT部分

>>> content = api.parts("OR:wt.epm.EPMDocument:4711").content.get(role="PRIMARY", filename="COVER.PRT")

更多示例,请参阅文档。

要求

服务器端要求

要使用API,您需要在Windchill服务器上安装最新版本的nexiles.tools

我们目前支持Windchill 11.1和12.0。

有关服务器端软件包的授权和部署信息,请联系info@nexiles.com

客户端要求

要在客户端使用API,您需要

  • 较新的Python版本(测试使用3.11.7,Python 2.7已最终停用)

  • setup.py文件中列出的依赖项。请注意,这些应该会自动安装。

文档

请参阅http://nexiles.github.io/nexiles.tools.api/

项目详情


下载文件

下载您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分布

nexiles.tools.api-0.5.1.tar.gz (28.4 kB 查看散列)

上传时间

构建分布

nexiles.tools.api-0.5.1-py3-none-any.whl (40.0 kB 查看散列)

上传时间 Python 3

支持者:

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面