terminhtml_recorder package¶
Create video and image files via TerminHTML rather than HTML/CSS/JS
Submodules¶
terminhtml_recorder.cli module¶
terminhtml_recorder.converter module¶
terminhtml_recorder.exc module¶
- exception terminhtml_recorder.exc.NoHTMLFoundException[source]¶
Bases:
TerminHTMLRecorderException
terminhtml_recorder.formats module¶
terminhtml_recorder.logger module¶
- class terminhtml_recorder.logger.LogLevel(value)[source]¶
-
An enumeration.
- DEBUG = 'DEBUG'¶
- INFO = 'INFO'¶
terminhtml_recorder.recorder module¶
- class terminhtml_recorder.recorder.PageLocators(speed_up, speed_down, restart)[source]¶
Bases:
object
- __init__(speed_up, speed_down, restart)¶
- restart: playwright.sync_api.Locator¶
- speed_down: playwright.sync_api.Locator¶
- speed_up: playwright.sync_api.Locator¶
- class terminhtml_recorder.recorder.Recording(video, format)[source]¶
Bases:
object
- __init__(video, format)¶
- format: OutputFormat¶
terminhtml_recorder.temp_path module¶
- terminhtml_recorder.temp_path.create_temp_path()[source]¶
Returns a temporary folder path
Use this instead of tempfile.TemporaryDirectory because: 1. That returns a string and not a path 2. On MacOS, the temp directory has a symlink. This resolves the symlink so that
there won’t be any mismatch in resolved paths.
On Windows, the temp directory can fail to delete with a PermissionError. This function will try to delete the temp directory, but if it fails with an error it will just ignore it.