python-tuf/tuf/api
Martin Vrachev 3771a77ffe New API: Add MetaFile class
In the top-level metadata classes, there are complex attributes such as
"meta" in Targets and Snapshot, "key" and "roles" in Root etc.
We want to represent those complex attributes with a class to allow
easier verification and support for metadata with unrecognized fields.
For more context read ADR 0004 and ADR 0008 in the docs/adr folder.

Additionally, after adding the MetaFile class, when we create an object
we are now calling from dict twice - one for the main class (Timestamp,
Snapshot) and one for the pacticular complex attribute -
MetaFile.from_dict(). Given that the "from_dict" methods have the
side effect of destroying the given dictionary, we would need to
start using deepcopy() for our tests.

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
2021-05-19 13:04:24 +03:00
..
serialization Fix black docstring indentation errors 2021-04-27 14:08:24 +03:00
__init__.py tuf/api: Expose tuf.api as a package 2020-10-15 14:35:14 +01:00
metadata.py New API: Add MetaFile class 2021-05-19 13:04:24 +03:00
pylintrc Metadata API/pylintrc: Use old style logging 2021-05-11 11:47:38 +03:00