describe
and list
command: if datapackage.json
is not provided describe
will load a sample from every tabular data file in a dataset and infer a schema while list
is a very lean and quick command operating only with available metadata and not touching actual data files.
With Frtictionless list
command you can get a list of resources from a data source. For more detailed output see describe
command.
By default, it outputs metadata visually formatted:
frictionless list tables/*.csv
─────────────────────────────────── Dataset ────────────────────────────────────
dataset
┏━━━━━━━━┳━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
┃ name ┃ type ┃ path ┃
┡━━━━━━━━╇━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
│ chunk1 │ table │ tables/chunk1.csv │
│ chunk2 │ table │ tables/chunk2.csv │
└────────┴───────┴───────────────────┘
It's possible to output as YAML
or JSON
, for example:
frictionless list tables/*.csv --yaml
- name: chunk1
type: table
path: tables/chunk1.csv
scheme: file
format: csv
mediatype: text/csv
- name: chunk2
type: table
path: tables/chunk2.csv
scheme: file
format: csv
mediatype: text/csv