Files
instructor/examples/parse_recursive_paths/diagram.py
T
David Okpare 319ddd69f8 Installed erdantic and added schemas (#20)
* Move examples to dir and fix imports

* Install erdantic and pygraphviz

* Add schema function and image

* Separate erd diagram function from example script

---------

Co-authored-by: Jason Liu <jxnl@users.noreply.github.com>
2023-06-24 10:25:22 +08:00

7 lines
167 B
Python

import erdantic as erd
from parse_recursive_paths import DirectoryTree
diagram = erd.create(DirectoryTree)
diagram.draw("examples/parse_recursive_paths/schema.png")