Edit page in Livemark
(2024-11-22 08:02)

List

With Frtictionless list command you can get a list of resources from a data source. For more detailed output see describe command.

Normal Mode

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 │
└────────┴───────┴───────────────────┘

Yaml/Json Mode

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