protool
A tool for dealing with provisioning profiles.
What can it do?
- Read profiles as XML or as a dictionary
- Read the values from the profile
- Diff two profiles to see what has changed
Installation
pip install protool
Examples:
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()
Alternatively, from the command line:
# 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
Custom diff commands (tool_override in Python or --tool on the command line)
accept an executable and optional arguments, for example --tool 'diff -u'.
Quote executable paths or arguments containing spaces within the command string,
for example --tool '"/path with spaces/diff" -u'. Commands run directly, without
a shell: pipes, redirection, environment-variable expansion, and command
substitution are not supported. Profile paths are always passed as literal arguments.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
Metadata
Release files for protool 3.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| protool-3.0.1.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| protool-3.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / protool-3.0.1.tar.gz
| Download URL | protool-3.0.1.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db61380f4c48cebb37aa6ea99f17658376b3a7f47fcc3bdf7993b372d6c32264
|
|
BLAKE2b-256 checksum How to use checksums |
3a4a87a82eaf33a9cea7832aa08c099d30ec51d6f43de91377a461b98cfda66c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.12.14 Darwin/25.6.0
|
Release files / protool-3.0.1-py3-none-any.whl
| Download URL | protool-3.0.1-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a8d79d28d334af9458950d189c920fcbf1f47fc11ffe7447839a2b427d03ded
|
|
BLAKE2b-256 checksum How to use checksums |
09f0efb4bec7ea1224456ca9d068f94f8380b106d69f3b07702f619d3015219c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.3 CPython/3.12.14 Darwin/25.6.0
|