Skip to main content

A tool for dealing with provisioning profiles

Project description

protool

PyPi Version 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. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protool-1.1.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

protool-1.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file protool-1.1.2.tar.gz.

File metadata

  • Download URL: protool-1.1.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.16 Darwin/22.3.0

File hashes

Hashes for protool-1.1.2.tar.gz
Algorithm Hash digest
SHA256 8fd0cf0541ce02aeaa36ca7b2732794b072a1d78f4de42605521055dc7078be3
MD5 add1bbdfe21e497992e99289890e2cfc
BLAKE2b-256 f3e1b02960a7bf6a91eb14aff719915bfb60b5638458c4eeca3ea0fcec81a797

See more details on using hashes here.

File details

Details for the file protool-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: protool-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.16 Darwin/22.3.0

File hashes

Hashes for protool-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 467809c1f09765b8c600d639dbc136a6b3353fdff52c30af706473bfa7953071
MD5 28cde5b194667a6fc0816c509b348926
BLAKE2b-256 f7044217068d001f761777182d9d79c50c6d954b69caac363e74e33e840ad9d9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page