Skip to content

Releases: LudvigOlsen/nattrs

nattrs 0.2.1

07 Sep 22:47
Compare
Choose a tag to compare
  • Fixes path to hexagon badge when viewing outside of GitHub.

nattrs 0.2.0

07 Sep 22:40
Compare
Choose a tag to compare
  • Adds nested_delattr() for deleting attributes / dict members in nested data structures.
  • Adds nested_updattr() for updating dicts and class.dict of nested attributes with a dict.
  • Adds regex argument to nested_*attr() functions for using regular expression to index attribute names / dict keys.
  • Adds getter_default argument to nested_mutattr() to allow better handling of missing attributes.
  • Adds Ignore() class to use as default value in nested_getattr() and getter_default in nested_mutattr().
  • Removes mutability requirements from type hints when they are unnecessary (only the sub object/Mapping needs to by mutable).
  • Adds hexagon bagde.

nattrs 0.1.3

07 Sep 08:37
Compare
Choose a tag to compare
  • Adds version variable to package.
  • Changes type hints from dict to Mapping and MutableMapping since the functions should work for those in general.

nattrs 0.1.2

30 Jul 07:55
Compare
Choose a tag to compare
  • Handles zipp vulnerability.
  • Now requires Python==3.8 or newer.

nattrs 0.1.1

15 Mar 10:10
Compare
Choose a tag to compare

v0.1.1 (03-2023)

  • Reformats README

v0.1.0 (03-2023)

  • Sets up package with poetry.
  • Initial main functions are:
    • nested_getattr()
    • nested_hasattr()
    • nested_setattr()
    • nested_mutattr()