Skip to main content

keyedarchivelib

Basic Python (>=3.6) library to generate and parse NSKeyedArchive files.

Installation

Install with pip:

pip3 install keyedarchivelib

Usage

The keyedarchivelib module has the same interface as the plistlib standard library module:

load, loads, dump, and dumps have the same function signatures as plistlib minus the fmt option, which is not available since it's always binary.

The keyedarchivelib module includes type hints.

For convenience, examples are provided below:

Reading (load & loads)

from keyedarchivelib import load

with open("example.plist", 'rb') as fp:
    pl = load(fp)
print(pl["test"])

Writing (dump & dumps)

from keyedarchivelib import dump, dumps

example_dict = {
    "test": 1
}
with open("example.plist", 'wb') as fp:
    dump(example_dict, fp)

# ~~~ OR ~~~

print(dumps(example_dict))

Note on compatibility

For versions below 3.8, plistlib doesn't support all the plist features used by NSKeyedArchiver. A compatibility hot-patching layer is used to support these lesser versions of Python. This library has not endured thorough testing beyond the latest versions of Python 3.6, 3.7, and 3.8. Please open issues for any observed problems!

Metadata

Release files for keyedarchivelib 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for keyedarchivelib 1.0.2
File Size Uploaded Provenance Actions
keyedarchivelib-1.0.2.tar.gz 4.8 kB Without provenance Details for keyedarchivelib-1.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for keyedarchivelib 1.0.2
File Interpreter ABI Platform Actions
keyedarchivelib-1.0.2-py3-none-any.whl Python 3 none any Details for keyedarchivelib-1.0.2-py3-none-any.whl

Total release size: 12.5 kB

Release files / keyedarchivelib-1.0.2.tar.gz

Download URL keyedarchivelib-1.0.2.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5fe9d360789dbadd8e0d921a15e858deacf5792b1b5833ee7fe099923627181b
BLAKE2b-256 checksum
How to use checksums
cd5062fc4d02fa02f5ae5ae294e3743fd5d2a298a195350225c933b480da4cbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

Release files / keyedarchivelib-1.0.2-py3-none-any.whl

Download URL keyedarchivelib-1.0.2-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a9192c976012c8453c2d8d9ef1fed43eb15409636aaca59ea3fb677ad8232898
BLAKE2b-256 checksum
How to use checksums
e373987759f82f9d5ac5f24131a3e2defe35383ba92251a5c90e6ec522966cf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.2.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

Security for keyedarchivelib 1.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page