Skip to content

List Examples

Examples shipped with pydykit can accessed with pydykit.examples.ExampleManager. This is demonstrated by the list of available examples within the tab Result shown below. The source code generating this list, is shown in tab Source.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
from markdown import markdown

from pydykit import examples

example_manager = examples.ExampleManager()
keys = example_manager.examples.keys()

base_url = example_manager.BASE_URL_EXAMPLE_FILES
html = markdown(
    "\n".join([f"- {item} [config file]({base_url}{item}.yml)" for item in keys])
)
print(html)