Albert Esteve 723a2f2126 reuse: addheader python shebang files
Add SPDX header to files with format not
recognised by reuse, but with Python shebang.

Signed-off-by: Albert Esteve <aesteve@redhat.com>
2022-10-18 13:04:20 +02:00

15 lines
302 B
Python
Executable File

#!/usr/bin/python3
# SPDX-FileCopyrightText: Red Hat, Inc.
# SPDX-License-Identifier: GPL-2.0-or-later
"""
Show how to compute disk image checksum.
"""
import sys
from ovirt_imageio import client
path = sys.argv[1]
res = client.checksum(path, algorithm="sha256")
print(f"{res['checksum']} {path}")