Some simple MacOS plist facilities.
Supports binary plist files, which the stdlib plistlib module does not.
Latest release 20221228: ingest_plist_dict: bugfix initial setting for key.
Function export_xml_to_plist(E, fp=None, fmt='binary1')
Export the content of an etree.Element to a plist file.
Parameters:
E: the sourceetree.Element.fp: the output file or filename (if a str).fmt: the output format, default"binary1". The format must be a valid value for the-convertoption of plutil(1).
Function import_as_etree(plist)
Load an Apple plist and return an etree.Element.
Paramaters:
plist: the source plist: data ifbytes, filename ifstr, otherwise a file object open for binary read.
Function ingest_plist(plist, recurse=False, resolve=False)
Ingest an Apple plist and return as a PListDict.
Trivial wrapper for import_as_etree and ingest_plist_etree.
Parameters:
recurse: unpack anybytesobjects as plistsresolve: resolve unpackedbytesplists''$objects'entries
Function ingest_plist_array(pa)
Ingest a plist , returning a Python list.
Function ingest_plist_dict(pd)
Ingest a plist Element, returning a PListDict.
Function ingest_plist_elem(e)
Ingest a plist Element, converting various types to native Python objects.
Unhandled types remain as the original Element.
Function ingest_plist_etree(plist_etree)
Recursively a plist's ElementTree into a native Python structure.
This returns a PListDict, a mapping of the plists's top dict
with attribute access to key values.
Function is_iphone()
Test if we're on an iPhone.
Class ObjectClassDefinition
A representation of a "class" object, used in resolve_object()
for otherwise unrecognised objects which contain a $classname member.
Class ObjectClassInstance
A representation of a "class instance", used in resolve_object()
for objects with a $class member.
Class PListDict(builtins.dict)
A mapping for a plist, subclassing dict, which also allows
access to the elements by attribute if that does not conflict
with a dict method.
Function readPlist(path, binary=False)
An old routine I made to use inside my jailbroken iPhone.
Function resolve_object(objs, i)
Resolve an object definition from structures like an iPhoto album queryData object list.
Function writePlist(rootObj, path, binary=False)
An old routine I made to use inside my jailbroken iPhone.
Release Log
Release 20221228: ingest_plist_dict: bugfix initial setting for key.
Release 20220606: Initial PyPI release.
Release files for cs.app.osx.plist 20221228
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cs.app.osx.plist-20221228.tar.gz | 6.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cs.app.osx.plist-20221228-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.3 kB
Release files / cs.app.osx.plist-20221228.tar.gz
| Download URL | cs.app.osx.plist-20221228.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85c4946e32c9d67f908a03cb06cd182f99ad45b3e0445b3b01d7364ccd2e16d5
|
|
BLAKE2b-256 checksum How to use checksums |
816ead5a63d3498b09ea5b34e35914bc1f71efe8b1b5e850b5791e0bc1042420
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|
Release files / cs.app.osx.plist-20221228-py3-none-any.whl
| Download URL | cs.app.osx.plist-20221228-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0373d13fe2b560e264eb3ab8566ca823caacaa5c25e849b9c55372ab11e1a41a
|
|
BLAKE2b-256 checksum How to use checksums |
dd34458471cee14d6fed4bb6c23bb4b480a84b0c54743a94afe724e6a12b1db0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.13
|