autouml Package¶
autouml provides decorators to trace method calls in your code during execution time.
-
autouml.set_options(show_arguments=False, use_instance_ids=False)[source]¶ fill in internal options dictionary
decorators¶
Decorators for all object types
log¶
plantuml files are generated through a logger
-
class
autouml.log.UMLFormatter(fmt=None, datefmt=None)[source]¶ Bases:
logging.FormatterThis is a minimal wrapper for injecting debug messages in plantuml as comments.
formatter¶
Formatters for beutifying logs
-
autouml.formatter.class_name(the_class, use_id=False)[source]¶ Returns class name and, optionally, instance id
-
autouml.formatter.constructor_arrow(*args, **kwargs)[source]¶ Returns a sequence string arrow for constructor methods
>>> constructor_arrow('A', 'B', '__init__', 'x', {} ) 'A ->o B: __init__(x)'
-
autouml.formatter.format_args(args, kwargs)[source]¶ Makes a nice string representation of all the arguments Taken from format_args
>>> args = (1, 2) >>> kwargs = {'one': 1, 'two': 2} >>> format_args(args, kwargs) '(1, 2, two=2, one=1)'
-
autouml.formatter.generic_arrow(class1, class2, the_method, args, kwargs, arrow='', use_instance_ids=False, show_arguments=True)[source]¶ Returns a sequence string
>>> generic_arrow('A', 'B', 'f', 'x', {} ) 'A -> B: f(x)'