Nattrs

Latest version: v0.2.2

Safety actively analyzes 687852 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.2.2

- Fixes path to hexagon badge when viewing outside of GitHub.

0.2.0

- 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.

0.1.3

- Adds `__version__` variable to package.
- Changes type hints from `dict` to `Mapping` and `MutableMapping`
since the functions should work for those in general.

0.1.2

- Handles `zipp` vulnerability.
- Now requires `Python==3.8` or newer.

0.1.1

- Reformats README

0.1.0

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

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.