Dat Exporter

Setup sub commands are accessible with:

dat <subcommand>

Commands

dat json

dat json <target> [--files FILE [FILE ...]]

The dat json export is used to export .dat files to json format.

The resulting json will roughly look like this:

[
    {
        // One of the files you've specified in the --files parameter
        "filename": "FILE",
        // headers in order from the dat specification
        "headers": [
            {
                // name of the header
                'name': 'Name',
                [ ... ] // other fields
            },
            ... // other headers
        ]
        "data": [
            // Each row
            [ ... ],
        ],
    },
    ... // other files
]

For details on what the extra fields mean in the headers, please see the dat specification file: https://github.com/OmegaK2/PyPoE/blob/dev/PyPoE/_data/dat.specification.ini