Reference

Supported file formats

Many applications store their settings in configuration files. Pinman can read individual settings from these files and, when asked, change them without rewriting unrelated content.

This page lists the file formats Pinman understands and the important limits of each one. It does not cover Pinman's own project database, captures or reference files. The page will be updated as file support expands.

Here, a format is supported when the current release can identify it, read its addressable settings and safely perform the write operations shown in the detailed reference. Support is not all-or-nothing: a format can be writable while a particular file shape or operation is refused.

Structured edits and whole-file copies#

This page describes structured edits: Pinman understands the contents of a file and changes one setting, row or column. Profile Apply, Profile Undo and setting-level Restore use these format adapters.

Two operations work at the whole-file level instead. A profile's p.file() target copies an asset file or directory to a tracked destination. A whole-file Restore copies the bytes saved by a capture. These copies can contain any format because Pinman does not interpret their contents.

See What Pinman will and won't change for write controls, preflight checks, Undo history, Journal entries and logs.

What structured writes preserve#

When Pinman changes a setting, values outside the requested edit remain unchanged. For text files, the writer also preserves surrounding source such as comments, ordering, key spelling, whitespace and line endings. Settings that are not in the schema remain in the file.

That does not mean the entire file remains byte-for-byte identical after an edit. The edited value may require different quoting or escaping, and adding or removing a setting necessarily changes its surrounding structure. Pinman stages and verifies each text-file write before replacing the original. SQLite changes are performed as database operations against the declared table, row and column.

A partial read is different from a failed read. It means Pinman can expose the addressable settings while leaving other content untouched. For example, Pinman may show the last of several repeated INI keys while leaving the earlier copies in the file but unavailable as separate settings.

Check a format or file#

The CLI can answer four increasingly specific questions: which formats this release offers, what one format declares, whether the real writer can safely handle a copy of one file, and whether it can handle every file declared by the active schema.

pinman file list --all -v
pinman file show csv
pinman file check C:\path\to\settings.csv --prop primary_key=Name
pinman file check --schema

file check copies the source bytes to a temporary directory and runs the real reader and writer there. Your file is never touched. Its report separates two questions that are not the same: what this release permits and what the writer did when measured against that copy.

If an extension can name more than one format, identify it with --as, for example:

pinman file check VPinMAME.ini --as pinmame_ini

Large files can take several minutes because each addressable setting is checked. This is a safety test of the supplied file, not a performance guarantee for every file of that size.

Standard formats#

FormatSchema itemtypeFilesHow settings are addressedImportant boundaries
INIini_file.iniSection and keyRepeated keys can be read, but ambiguous writes are refused. A value spread across several lines cannot be changed.
XMLxml_file.xmlElement pathRepeated elements and mixed text-and-element content may be unaddressable. Pinman preserves attributes and surrounding XML source.
JSONjson_file.jsonKey pathPinman edits named values in objects. It does not edit a list-valued setting in place, and duplicate names are refused for writing.
YAMLyaml_file.yaml, .ymlKey pathPinman preserves YAML source, including comments. List-valued settings are not edited in place, and duplicate names are refused for writing.
CSVcsv_file.csvKeyed row or row position, then columnRows can use one key column, a compound key, or explicit keyless positional addressing. Keyless rows can be updated but not added or removed. Headed and headerless files are supported when declared correctly. Multiline fields and ambiguous duplicate rows can be refused.
SQLitesqlite_file.sqlite, .sqlite3, .dbTable, primary key and columnTables must have a usable primary key. Pinman does not edit raw-byte (BLOB) values.

The table summarizes common boundaries, not every supported or refused shape. See the full format reference for the operation-by-operation catalogue.

Application and domain-specific formats#

Some applications use a layout whose meaning cannot be inferred from its extension alone. These adapters live beside the standard formats and use the same read, write and preservation contracts. More application and domain sections can be added over time.

Arcade formats#

FormatSchema itemtypeTypical fileHow it differs from a generic format
PinMAME optionspinmame_ini_file.iniUnderstands PinMAME's option lines and encoding rules.
PinVol settingspinvol_settings_file.iniUnderstands PinVol's named settings, including its repeated-entry limitations.
PinVol tablespinvol_tables_file.iniTreats table entries as rows rather than ordinary INI keys.
ScreenResscreenres_fileusually .txtAddresses values by their defined position. Existing values can be changed, but fields cannot be added or removed.

Because .ini is shared by several adapters, a standalone file check may require --as. Files declared in a schema already carry their intended format.

To request support for another application or file format, open a GitHub issue.

Full format reference#

Pinman's support catalogue contains representative on-disk shapes and the expected outcome of reading and writing each one. The support harness runs the real adapter against temporary copies and verifies that observation against the catalogue. The generated reference reports the current shape counts, operation outcomes and authored limitations.

It is a support matrix, not a claim that every possible file has been tested and not a performance benchmark. Use pinman file check when you need evidence about a particular file.

Open the full format reference →