Amethyst-core

Latest version: v0.9.0

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

Scan your dependencies

Page 2 of 2

0.7.0

- INCOMPATIBLE: Always validate attributes except when using
.direct_set() and .direct_update() methods
- INCOMPATIBLE: Strict validation raises KeyError not ValueError
if passed an absent key name.
- INCOMPATIBLE: Prefix critical methods with amethyst_. Explicitly
document (and test) other methods as overridable by subclasses.
- cached_property: new "delegate" kwarg to delegate storage to an attribute

0.6.4

- documentation updates
- version bump for pypi release

0.6.2

- bugfix: error in using isinstance on bools in amethyst_deflate
- Object .keys(), .values(), .items(), .iteritems() to better impersonate dict()

0.6.1

- Use Attr(OVERRIDE=True) to avoid DuplicateAttributeException
- Add class/attribute name to various error messages to aid in debugging
- Use register_amethyst_type(wrap_encode=False) to skip auto-wrapping
encoded values in a dict (e.g., for plain string-encodable types)
- Attr copies .doc property when creating derived Attrs (e.g., using Attr.strip())
- fromJSON and newFromJSON accept file handles in addition to strings
- Split out functions amethyst_deflate and amethyst_inflate for external serialization
- More documentation

0.6.0

- INCOMPATIBLE: default amethyst_classhint_style is now "flat"
- INCOMPATIBLE: amethyst_strictkeys replaced with more general amethyst_import_strategy
- Attr `default` values immediately apply at object creation
- Object.set() can now take either positional key/value or kwargs
- remove pkgutil.extend_path fallback, use only pkg_resources.declare_namespace

0.5.0

- Initial release

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.