# protool
[![PyPi Version](https://img.shields.io/pypi/v/protool.svg)](https://pypi.org/project/protool/)
[![License](https://img.shields.io/pypi/l/protool.svg)](https://github.com/Microsoft/protool/blob/master/LICENSE)
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
# 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](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
Raw data
{
"_id": null,
"home_page": "https://github.com/Microsoft/protool",
"name": "protool",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8,<4.0",
"maintainer_email": null,
"keywords": "provisioning,profiles,apple,ios,xcode,mobileprovision",
"author": "Dale Myers",
"author_email": "dalemy@microsoft.com",
"download_url": "https://files.pythonhosted.org/packages/91/68/085d4d683a30c305b5b38b1eff1fd2254b5cf815f39692ab386104c29e5d/protool-2.0.0.tar.gz",
"platform": null,
"description": "# protool \n\n[![PyPi Version](https://img.shields.io/pypi/v/protool.svg)](https://pypi.org/project/protool/)\n[![License](https://img.shields.io/pypi/l/protool.svg)](https://github.com/Microsoft/protool/blob/master/LICENSE)\n\nA tool for dealing with provisioning profiles.\n\nWhat can it do? \n\n* Read profiles as XML or as a dictionary\n* Read the values from the profile\n* Diff two profiles to see what has changed\n\n### Installation\n\n pip install protool\n\n### Examples:\n\n import protool\n profile = protool.ProvisioningProfile(\"/path/to/profile\")\n\n # Get the diff of two profiles\n diff = protool.diff(\"/path/to/first\", \"/path/to/second\", tool_override=\"diff\")\n\n # Get the UUID of a profile\n print profile.uuid\n\n # Get the full XML of the profile\n print profile.xml\n\n # Get the parsed contents of the profile as a dictionary\n print profile.contents()\n\n\nAlternatively, from the command line:\n\n # Get the diff\n protool diff --profiles /path/to/profile1 /path/to/profile2 --tool diff\n\n # Get the UUID of a profile\n protool read --profile /path/to/profile --key UUID\n\n # Get the raw XML (identical to using `security cms -D -i /path/to/profile`)\n protool decode --profile /path/to/profile\n\n\n# Contributing\n\nThis project welcomes contributions and suggestions. Most contributions require you to agree to a\nContributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us\nthe rights to use your contribution. For details, visit https://cla.microsoft.com.\n\nWhen you submit a pull request, a CLA-bot will automatically determine whether you need to provide\na CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions\nprovided by the bot. You will only need to do this once across all repos using our CLA.\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or\ncontact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A tool for dealing with provisioning profiles",
"version": "2.0.0",
"project_urls": {
"Homepage": "https://github.com/Microsoft/protool",
"Repository": "https://github.com/Microsoft/protool"
},
"split_keywords": [
"provisioning",
"profiles",
"apple",
"ios",
"xcode",
"mobileprovision"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1f7295fd7805f046ee43ece18a239263d53b26ed8d618bb7e9038afc1a9aa3e8",
"md5": "8aee8521c852d634e6a8d90ec1c6ee32",
"sha256": "05098718658b1f8a59e1bc7474a0de379187c9b3eb11849ba5d7b06b56add303"
},
"downloads": -1,
"filename": "protool-2.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8aee8521c852d634e6a8d90ec1c6ee32",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8,<4.0",
"size": 7219,
"upload_time": "2023-08-04T06:52:28",
"upload_time_iso_8601": "2023-08-04T06:52:28.789894Z",
"url": "https://files.pythonhosted.org/packages/1f/72/95fd7805f046ee43ece18a239263d53b26ed8d618bb7e9038afc1a9aa3e8/protool-2.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "9168085d4d683a30c305b5b38b1eff1fd2254b5cf815f39692ab386104c29e5d",
"md5": "2d0189b1982e4684965915caed10cb8c",
"sha256": "a2818485047bfd7946230cbaa9ee89145eea6b709741cb601823a18d24b5c4fd"
},
"downloads": -1,
"filename": "protool-2.0.0.tar.gz",
"has_sig": false,
"md5_digest": "2d0189b1982e4684965915caed10cb8c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8,<4.0",
"size": 6284,
"upload_time": "2023-08-04T06:52:26",
"upload_time_iso_8601": "2023-08-04T06:52:26.785894Z",
"url": "https://files.pythonhosted.org/packages/91/68/085d4d683a30c305b5b38b1eff1fd2254b5cf815f39692ab386104c29e5d/protool-2.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-08-04 06:52:26",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Microsoft",
"github_project": "protool",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "protool"
}