Some simple MacOS plist facilities.
Supports binary plist files, which the stdlib plistlib module does not.
Latest release 20220606: Initial PyPI release.
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 20220606: Initial PyPI release.
Metadata
Release files for cs.app.osx.plist 20220606
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cs.app.osx.plist-20220606.tar.gz | 5.9 kB | Without provenance | Details for cs.app.osx.plist-20220606.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cs.app.osx.plist-20220606-py3-none-any.whl | Python 3 | none | any | Details for cs.app.osx.plist-20220606-py3-none-any.whl |
Total release size: 12.0 kB
Release files / cs.app.osx.plist-20220606.tar.gz
| Download URL | cs.app.osx.plist-20220606.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7afa6949773944ad7b0ff50a04edc5bdaebf6d78bb58aefe2d5be8baa720ee19
|
|
BLAKE2b-256 checksum How to use checksums |
c9497ba82730b53d7eaa5f623e3d2bebeed180cb3fb382479c09312d2a4e0aa7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.13
|
Release files / cs.app.osx.plist-20220606-py3-none-any.whl
| Download URL | cs.app.osx.plist-20220606-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79b7978b142599a53fa3aa6bf5f30c66f9de24d49401c626f5261b50e9212c1f
|
|
BLAKE2b-256 checksum How to use checksums |
79c51cf1b96da1654d2c7a4cf8e59658bbb38fb1a3628c497419c95d9732ea01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.1 readme-renderer/30.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.62.3 importlib-metadata/4.8.2 keyring/23.3.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.13
|
Security for cs.app.osx.plist 20220606
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.