learning-it by example

Back to the video

A Business Glossary in YAML With Four Python Checks

A glossary in a file, and four checks that find its four faults in a second.

Video #203 ยท Data governance

Steps in the video

  1. 0:00 A business glossary in a file, with four checks that catch its four faults
  2. 0:33 The idea
  3. 1:03 Setup
  4. 1:35 The glossary
  5. 2:03 Two more faults
  6. 2:25 The schema
  7. 2:43 Thin entries and broken links
  8. 3:01 Shared words and unlinked columns
  9. 3:17 Run the checks
  10. 3:55 What this does not show
  11. 4:26 Mistakes to avoid
  12. 4:50 My take and next steps
  13. 5:16 Recap

Files

  • check.py (33 lines)
  • glossary.yaml (20 lines)
  • run.py (12 lines)
  • schema.py (10 lines)

Download the code (zip)

Tested with

Python 3.12.15 | PyYAML==6.0.3

What this does not show

Made-up shop and glossary with planted faults; the checks test the file's shape, not whether a definition is right.

Sources

Learning IT by Example.