GitXplorerGitXplorer
b

keyedarchivelib

public
4 stars
2 forks
0 issues

Commits

List of commits on branch main.
Verified
b19f768fed76d2a6870bfa56ed4f198440aa3741

Bump mypy from 1.14.0 to 1.14.1 (#57)

ddependabot[bot] committed 18 days ago
Verified
67e217cfbc8c951dfb6e9097b9d18bde6d6ca2c2

Bump coverage from 7.6.9 to 7.6.10 (#56)

ddependabot[bot] committed 22 days ago
Verified
c21153fad6c35502c24501cb8c3eff46e295640a

Bump mypy from 1.13.0 to 1.14.0 (#55)

ddependabot[bot] committed a month ago
Verified
b1a9646adaa805375226d5e18d403bfb2b5937c6

Bump coverage from 7.6.8 to 7.6.9 (#54)

ddependabot[bot] committed a month ago
Verified
94f07420785bd72b387ee7b1f109e2486f2d850a

Bump twine from 5.1.1 to 6.0.1 (#53)

ddependabot[bot] committed 2 months ago
Verified
c13ca3f62340da071426017e196895c62b882a64

Bump wheel from 0.45.0 to 0.45.1 (#52)

ddependabot[bot] committed 2 months ago

README

The README file for this repository.

keyedarchivelib

Basic Python (>=3.8) 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))