decorators dandy.recorder.decorators recorder_to_html_file Source code in dandy/recorder/decorators.py 30 31 32 33 34 35 36 37 38def recorder_to_html_file(recording_name: str = RECORDING_DEFAULT_NAME, path: Path | str = DEFAULT_RECORDER_OUTPUT_PATH): def decorator(func): @wraps(func) def wrapper(*args, **kwargs): return _recorder_to_file_decorator_function(func, args, kwargs, recording_name, 'html', path) return wrapper return decorator recorder_to_json_file Source code in dandy/recorder/decorators.py 41 42 43 44 45 46 47 48 49def recorder_to_json_file(recording_name: str = RECORDING_DEFAULT_NAME, path: Path | str = DEFAULT_RECORDER_OUTPUT_PATH): def decorator(func): @wraps(func) def wrapper(*args, **kwargs): return _recorder_to_file_decorator_function(func, args, kwargs, recording_name, 'json', path) return wrapper return decorator recorder_to_markdown_file Source code in dandy/recorder/decorators.py 52 53 54 55 56 57 58 59 60def recorder_to_markdown_file(recording_name: str = RECORDING_DEFAULT_NAME, path: Path | str = DEFAULT_RECORDER_OUTPUT_PATH): def decorator(func): @wraps(func) def wrapper(*args, **kwargs): return _recorder_to_file_decorator_function(func, args, kwargs, recording_name, 'markdown', path) return wrapper return decorator