Skip to content

CodeVideoRenderer 1.2.1

Latest

Choose a tag to compare

@ExploreMaths ExploreMaths released this 22 Mar 11:43
· 4 commits to main since this release

See details at https://pypi.org/project/codevideorenderer/1.2.1/.

What's Changed

Additions πŸš€

  • Add the __version__ variable to __init__.py

  • Add the __all__ variable to config.py, renderer.py, typing.py, and utils.py

  • Add the formatter_style parameter to the CameraFollowCursorCV class

  • Add beautification for terminal error messages

  • Add parameter descriptions and type annotations for all functions and classes

  • Add the __getattribute__ function to the CameraFollowCursorCV class to prevent data modification by changing attributes

  • Add the CodeVideoRendererFont font to support Chinese characters

  • Add the NOT_AVAILABLE_CHARACTERS variable to config.py

  • Add the Parameters class to the CameraFollowCursorCV class for managing and retrieving parameters

  • Add version.py to manage package version

Changes 🧹

  • Change the function name format from aaa_bbb (snake_case) to aaaBbb (camelCase)

  • Change the PygmentsLanguage class to a Literal type

  • Refactor the default_progress_bar function into the DefaultProgressBar class

  • Split CameraFollowCursorCVR.py into renderer.py, typing.py, and utils.py

  • Modify the whitespace handling logic to improve rendering speed

  • Make partial modifications to the parameters and descriptions of the CameraFollowCursorCV class

  • Modify some terminal output content

  • Update the value of CODE_OFFSET in config.py

Fixes πŸ›

  • Fix the code offset issue caused by @gaojj2000 in #5
  • Fix the code_line_rectangle offset issue that occurs when code offset happens

Deletions πŸ—‘οΈ

  • Remove the DEFAULT_CODE_FORMATTER_STYLE, AVAILABLE_CHARACTERS, and EMPTY_CHARACTER variables from config.py