
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
json-plist-mobileconfig
Advanced tools
A Python package to convert files between JSON, plist, and mobileconfig 'Custom Settings' formats.
JSON-Plist-Mobileconfig Converter is a Python package that facilitates the conversion between JSON, plist, and mobileconfig ("Custom Settings") formats.
You can install the package from PyPI using the following command:
pip install json-plist-mobileconfig
Alternatively, you can clone the repository to your local machine:
git clone https://github.com/rjocoleman/json-plist-mobileconfig.git
Navigate to the project directory:
cd json-plist-mobileconfig
Although the script uses only the Python standard library, if you add any external dependencies in the future, you can install them using:
pip install -r requirements.txt
You can use the script as a command-line tool with the following syntax:
json-plist-mobileconfig input_file [--plist] [--json] [--mobileconfig] [options]
(Or not installed via the PyPI package python ./json-plist-mobileconfig.py
)
input_file
: The path to the input JSON or plist file. (Required)--plist
: If specified, outputs a plist file.--json
: If specified, outputs a JSON file.--mobileconfig
: If specified, outputs a mobileconfig file with embedded plist data.--uuid UUID
: Specifies the UUID for the mobileconfig file. A new UUID is generated if not specified.--removal_disallowed
: Disallows removal of the mobileconfig file. Default is false.--identifier IDENTIFIER
: Specifies the identifier for the mobileconfig file. Default is 'com.example.customsettings'.--payload_version PAYLOAD_VERSION
: Specifies the payload version for the mobileconfig file. Default is 1.--payload_display_name PAYLOAD_DISPLAY_NAME
: Specifies the payload display name for the mobileconfig file. Default is 'Custom Settings'.--version
: Displays the version of the script.You can also use the script as a library in other Python scripts. Here's an example of how to use the functions in the script:
import script_name
# Read data from a JSON or plist file
data = script_name.read_input_file('input_file.json')
# Convert data to plist format
plist_data = script_name.convert_to_plist(data)
# Convert data to JSON format
json_data = script_name.convert_to_json(data)
# Create a mobileconfig file with embedded plist data
mobileconfig_data = script_name.create_mobileconfig(plist_data, uuid, removal_disallowed, identifier, payload_version, payload_display_name)
mcxToProfile - does something similar, and has a different feature set but relies on external libraries and was harder for me to run
FAQs
A Python package to convert files between JSON, plist, and mobileconfig 'Custom Settings' formats.
We found that json-plist-mobileconfig demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.