处理配置文件的工具
项目描述
protool
处理配置文件的工具。
它能做什么?
- 以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 查看哈希值)
关闭
protool-2.0.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | a2818485047bfd7946230cbaa9ee89145eea6b709741cb601823a18d24b5c4fd |
|
MD5 | 2d0189b1982e4684965915caed10cb8c |
|
BLAKE2b-256 | 9168085d4d683a30c305b5b38b1eff1fd2254b5cf815f39692ab386104c29e5d |
关闭
protool-2.0.0-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 05098718658b1f8a59e1bc7474a0de379187c9b3eb11849ba5d7b06b56add303 |
|
MD5 | 8aee8521c852d634e6a8d90ec1c6ee32 |
|
BLAKE2b-256 | 1f7295fd7805f046ee43ece18a239263d53b26ed8d618bb7e9038afc1a9aa3e8 |