Skip to content

0.2.25-beta.01

Pre-release
Pre-release

Choose a tag to compare

@rasmus-ohe rasmus-ohe released this 05 Jul 00:31

[0.2.25] - 2023-7-3

Major QOL update!

Added

  • New file file_editor.py
    • Has the class FileEditor
    • Can read, edit and write to a file with ease
    • STILL WIP, so may not work as intended
  • New function try_listdir()
    • Tries to list a directory
    • Returns None if it fails
  • fprint()
    • New function error()
      • Prints an error messade to the console, with your own text
      • fprint.error('This is an error message') -> --[!]-- This is an error message --[!]--
    • sep (separator) variable
      • What to join the *args with

Changed

  • A lot of classes had the problem of "sharing" the same fprint(), so do_print was shared between all classes.
    • This has been fixed, and now each class has its own fprint()
  • Changed docstring format from my custom created, to NumnPy style
    • should make it easier to read and understand
  • In a lot of class __call__() functions, the default input values were set as None. Those are removed, and now are being taken from a kwargs.
    • This makes the code a lot more readable, and easier to understand
  • fprint()
    • Total rework of the function
    • Should be easier to add more functions in the future

Removed

  • Some classes had unnecceary @dataclass decorators, so those have been removed
    • Shouldn't affect anything