python-tuf/tuf/ngclient
Teodora Sechkova 4fc2c19ba4
Modify delegations traversal loop condition
Reduce the number of variables in the while loop by using
len(visited_role_names) instead of number_of_delegations.
Include equality in the comparison with config.max_delegations
to account for visiting "targets". Shorten the commit message.

Add max number of delegations test case.

Signed-off-by: Teodora Sechkova <tsechkova@vmware.com>
2021-12-20 19:04:06 +02:00
..
_internal Create constants for top-level rolenames 2021-12-02 12:16:25 +02:00
__init__.py Add client config module 2021-07-05 18:35:32 +03:00
config.py ngclient: Fix docs link to specification 2021-10-01 14:42:54 +03:00
fetcher.py Remove URL normalisation 2021-11-25 15:42:28 +02:00
README.md Improve README 2021-07-05 10:45:19 +03:00
updater.py Modify delegations traversal loop condition 2021-12-20 19:04:06 +02:00

Next-gen TUF client for Python

This package provides modules for TUF client implementers.

tuf.ngclient.Updater is a class that implements the client workflow described in the TUF specification (see https://theupdateframework.github.io/specification/latest/#detailed-client-workflow)

tuf.ngclient.FetcherInterface is an abstract class that client implementers can implement a concrete class of in order to reuse their own networking/download libraries -- a Requests-based implementation is used by default.

This package:

  • Aims to be a clean, easy-to-validate reference client implementation written in modern Python
  • At the same time aims to be the library of choice for anyone implementing a TUF client in Python: light-weight, easy to integrate and with minimal required dependencies
  • Is still under development but is planned to become the default client in this implementation (i.e., the older tuf.client will be deprecated in the future)