File scanning
metacrafter scan file detects format from the file extension, including
compression suffixes such as .csv.gz. See Formats for the full
list.
CSV / TSV
metacrafter scan file somefile.csv --format short
metacrafter scan file somefile.csv \
--format short \
--encoding windows-1251 \
--delimiter ';'
metacrafter scan file data.tsv \
--delimiter '\t' \
--format full \
-o results.json
JSON and JSONL
metacrafter scan file data.json \
--format full \
--output-format json \
-o results.json
metacrafter scan file somefile.jsonl \
--format full \
--output-format json \
--stdout \
--pretty
Binary formats
metacrafter scan file data.parquet --format full --output-format json -o parquet_results.json
metacrafter scan file spreadsheet.xlsx --format full --limit 500 -o excel_results.json
metacrafter scan file data.bson --format full --output-format json -o bson_results.json
Compressed files
metacrafter scan file data.csv.gz --format full -o results.json
metacrafter scan file data.jsonl.bz2 \
--compression bz2 \
--format full \
-o results.json
metacrafter scan file archive.zip \
--compression zip \
--format full \
-o results.json
XML
metacrafter scan file data.xml \
--tagname "record" \
--format full \
-o xml_results.json
Statistics only
metacrafter scan file somefile.csv \
--stats-only \
--output-format json \
-o somefile_stats.json