Currently, MDIOReader and MDIOWriter prints the Python object. It would be useful to have a nice printable representation.
class InfoReporter:
def __init__(self, obj):
self.obj = obj
def __repr__(self):
items = self.obj.info_items()
return info_text_report(items)
def _repr_html_(self):
items = self.obj.info_items()
return info_html_report(items)
from here is a good model to follow.