python-tuf/examples/client_example
ameypd fc0d53aae2 Fixes #1862, added way to see full stack trace on error situations
Signed-off-by: ameypd <h20220013@goa.bits-pilani.ac.in>
2022-11-25 19:41:49 +05:30
..
1.root.json WIP: TUF Python Client Example/Tutorial 2021-12-03 19:57:53 +01:00
client_example.py Fixes #1862, added way to see full stack trace on error situations 2022-11-25 19:41:49 +05:30
README.md Simplify README, fix some flows and output 2021-12-03 19:59:01 +01:00

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