Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

TUF Client Example

TUF Client Example, using python-tuf.

This TUF Client Example implements the following actions:

  • Client Infrastructure Initialization
  • Download target files from TUF Repository

The example client expects to find a TUF repository running on localhost. We can use the static metadata files in tests/repository_data/repository to set one up.

Run the repository using the Python3 built-in HTTP module, and keep this session running.

   $ python3 -m http.server -d tests/repository_data/repository
   Serving HTTP on :: port 8000 (http://[::]:8000/) ...

How to use the TUF Client Example to download a target file.

$ ./client_example.py download file1.txt
Morty Proxy This is a proxified and sanitized view of the page, visit original site.