Still need to add more features, but the API is there, and used by cmdline tools with -f or --format.