Odin

Latest version: v2.10

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

Scan your dependencies

Page 3 of 6

2.0

===

- Annotated Resources!
- Use annotations to define your resources including Aliases for Email, URL's and UUID's
- Drop support for Python <3.8, officially tested on Python 3.8+
- Removed a number of dependencies that where only required for Python <3.8 eg
(enum, six etc)
- Removed deprecated features:
- odin.csv_codec.ResourceReader
- odin.serializers.DatetimeEcmaFormat
- Improvements to typing and utilising of modern Python features
- Fix bug in toml_codec that prevented the use of the include_type_field option.
- Invalid choices now generate a ValueError exception
- New fields for builtin Python types
- odin.PathField
- odin.RegexField
- Use builtin datatime.timezone.utc instead of custom UTC instance

1.8.1

=====

- Change composite field to pass the resource the field is defined with rather
than the name of the field, this allows namespace and typing to work correctly.

1.8.0

=====

- Allow types to be resolved by assuming a types names space (simplifies
specification of types where the full name space can be assumed)
- Inherit a custom type_field (this could cause unexpected side effects,
although unlikely as this is a required change)

1.7.3

=====

- Fix bug where __classcell__ was not passed into super_new during metaclass
construction. This causes a RuntimeError with Python 3.8+ if the metaclass is
subclassed.

1.7.2

=====

- Fix an edge case bug where validators are not executed against empty list/dict
fields.
- Ensure that all validate and run_validators are executed on all entries in a
typed list field

1.7.1

=====

- Tweak to generation of sphinx choices so TypedLists use choices from type.
- Fix issue in Sphinx plugin where ``choices_doc_text`` was not used to format
choice values.
- Add TypedDictField to docs

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.