History#
0.4.0 (2022-09-21)#
Features and Improvements
Add helper function
set_default_for_missing_keys, which can be used to set a default value to return when an attribute (key) is missing.
0.3.1 (2022-06-17)#
Bugfixes
Update the implementations for
DotWizandDotWizPlusso that we handle an edge case where we are presented with keys names that shadow builtindictmethods, such asitemsorvalues.
Features and Improvements
Update
DotWizPlusto treat key names such asitems,get, orto_dictas a reserved keyword for all intents and purposes, and add a trailing_when storing the key name; this fixes attribute access (ex. likeitems_) and also resolves IDE warnings, which correctly state for ex. that builtin methoditemsdoesn’t have an attribute named x.
0.3.0 (2022-06-08)#
Breaking Changes
Update the project classifier from Production to Beta, because the API is not yet stable, and future minor releases might introduce other breaking changes.
dotwizhas officially dropped support for Python 3.6. This is due to a number of reasons, such as 3.6 reaching EOL some months back, and also libraries such aspyheckwhich only support Python 3.7+.Update the
__repr__forDotWizto display a star character (✫) in place of the class name, just so it’s a little easier to read.
Features and Improvements
Add new
DotWizPlusclass and implementation, which can be useful for special-cased keys likemyTestKeyandhello, world!. This implementation mutates such keys to valid snake case identifier names, so the above key names would becomemy_test_keyandhello_world.Add new dependency on pyheck.
Refactor to pull out common or shared code into a
commonmodule.Update the docs and add a section on
DotWizPlus.Update theme for the docs, from
alabastertofuro.Update tests to maintain 100% code coverage.
0.2.0 (2022-06-05)#
Breaking Changes
Removed
DotWizmethodsfrom_dictandfrom_kwargs, as these are now superseded by theDotWizconstructor method.Update the signature of
make_dot_wiztomake_dot_wiz(*args, **kwargs)
Features and Improvements
It’s now easier to create a
DotWizobject from adictor from keyword arguments. The__init__constructor method can now directly be used instead.Add major performance improvements, so
DotWizis now faster than ever.Add a
to_dictmethod to enable aDotWizinstance to be recursively converted back to adict.Refactor code to remove unnecessary stuff.
Add GitHub badges and CI integration for codecov.
Updated docs.
0.1.0 (2022-06-03)#
First release on PyPI.