Skip to main content

Unarchive an NSKeyedArchive into a python object.

Project description

Unarchiver

Unarchive an NSKeyedArchive into python.

Installation

pip install unarchiver

Command-line usage

Usage: unarchiver.py [OPTIONS] KEYED_ARCHIVE

  Unarchive an NSKeyedArchiver file.

Options:
  -o, --to-file PATH  A file to dump unarchived content into.
  --help              Show this message and exit.
$ poetry run unarchive ~/Library/News/actionQueue
{
    "root": {
        "$type": "NSMutableDictionary",
        "NS.keys": [
            "FCFileCoordinatedAccountActionQueueLocalDataHintKey",
            "FCFileCoordinatedAccountActionQueueActionTypesKey"
        ],
        "NS.objects": [
            true,
            {
                "$type": "NSMutableArray",
                "NS.objects": []
            }
        ]
    }
}

Library Usage

from unarchiver.unarchiver import Unarchiver

unarchiver = Unarchiver(path_to_archive)

obj = unarchiver.parse()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unarchiver-0.2.0.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

unarchiver-0.2.0-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page