Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.28.0: Minor Performance and QoL Change: Dynamically exec Dataclass Load and Dump Functions #141

Merged
merged 22 commits into from
Nov 15, 2024

Conversation

rnag
Copy link
Owner

@rnag rnag commented Nov 12, 2024

v0.28.0

Added

  • TOMLWizard
  • New (pre-process) serializer hooks
    • _pre_from_dict
    • _pre_dict
  • debug param to JSONWizard.__init_subclass__
  • *.pyi stub files for better Type Hinting and Autocompletion in IDEs (ex. PyCharm)
    • abstractions.pyi
    • serial_json.pyi
  • Utility class FunctionBuilder to help build and dynamically exec a function

Changed

  • Minor Optimization and QOL Change: Dynamically exec Dataclass Load and Dump Functions
  • Minor performance boon: If class defines a from_dict method (equivalent to fromdict) and a to_dict method (equivalent to asdict), replace them with the dynamically generated load/dump functions.
  • Deprecate pre-process hook DumpMixin.__pre_as_dict__

@rnag rnag changed the title v0.28.0: Minor Performance and QOL Change: Dynamically exec Dataclass Load and Dump Functions v0.28.0: Minor Performance and QoL Change: Dynamically exec Dataclass Load and Dump Functions Nov 12, 2024
@rnag rnag merged commit a6d3eaf into main Nov 15, 2024
6 checks passed
@rnag rnag deleted the v0.28.0-optimize-load-and-dump-functions branch November 15, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant