跳转到主要内容

处理配置文件的工具

项目描述

protool

PyPi Version License

处理配置文件的工具。

它能做什么?

  • 以XML或字典形式读取配置文件
  • 从配置文件中读取值
  • 比较两个配置文件以查看哪些已更改

安装

pip install protool

示例

import protool
profile = protool.ProvisioningProfile("/path/to/profile")

# Get the diff of two profiles
diff = protool.diff("/path/to/first", "/path/to/second", tool_override="diff")

# Get the UUID of a profile
print profile.uuid

# Get the full XML of the profile
print profile.xml

# Get the parsed contents of the profile as a dictionary
print profile.contents()

或者,从命令行

# Get the diff
protool diff --profiles /path/to/profile1 /path/to/profile2 --tool diff

# Get the UUID of a profile
protool read --profile /path/to/profile --key UUID

# Get the raw XML (identical to using `security cms -D -i /path/to/profile`)
protool decode --profile /path/to/profile

贡献

本项目欢迎贡献和建议。大多数贡献都需要您同意《贡献者许可协议》(CLA),声明您有权并且确实授予我们使用您贡献的权利。有关详细信息,请访问https://cla.microsoft.com

当您提交拉取请求时,CLA机器人会自动确定您是否需要提供CLA,并相应地装饰PR(例如,标签,注释)。只需遵循机器人提供的说明。您只需在整个使用我们的CLA的所有存储库中这样做一次。

本项目已采用Microsoft开源行为准则。有关更多信息,请参阅行为准则FAQ或通过opencode@microsoft.com联系我们有任何额外的问题或评论。

项目详情


下载文件

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

源代码分发

protool-2.0.0.tar.gz (6.3 kB 查看哈希值)

上传时间: 源代码

构建分发

protool-2.0.0-py3-none-any.whl (7.2 kB 查看哈希值)

上传时间: Python 3

由以下机构支持

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