Typecats

Latest version: v2.0.2

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

Scan your dependencies

Page 2 of 3

1.6.0

Added new exception hook functionality for better visibility into
structuring errors. By default adds verbose logging when your item
fails to structure, but this default behavior may be replaced.

1.5.0

New converter which will strip (recursively) all attributes which are
equal to their attrs defaults, except for attributes annotated as
`Literal`, which are assumed to be required.

Can be called using `unstruc_strip_defaults(your_attrs_obj)`, or on a
Cat type using the new boolean keyword argument on `unstruc`,
`your_cats_obj.unstruc(strip_defaults=True)`.

1.4.1

No longer assume that the `dict` methods will not be overlaid on a
Wildcat by `attrs` attributes.

1.4.0

Extracted the default `cattrs` Converter from all implementations to
make `typecats` fully compatible with the use of any
application-provided Converter(s).

All that is necessary to use an externally-supplied converter is to
call the new `patch_converter_for_typecats` function exported by the
package root on the Converter. This will patch your Converter to
enable `typecats` functionality while still maintaining all the
existing functionality and previously-registered function-dispatched
structure and unstructure hooks within your Converter.

1.3.2

Reworked Wildcat functionality to use a cleaner hooking process.

1.3.1

Corrected return type of `try_struc` to be `Optional[T]`.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.