pyinfra icon indicating copy to clipboard operation
pyinfra copied to clipboard

Add support for sha348

Open Firesphere opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe

Composer provides a sha348 of the build, but I can't validate it directly in pyinfra, because it doesn't have a sha348 method.

Describe the solution you'd like

Add a sha348 validation for files.download(). Optionally, probably cleaner, a way to give a specific hashing algorithm, e.g. files.download('https://example.com/download.file', hash=abcxyz123, algorithm=sha512), or similar

Firesphere avatar Nov 26 '24 00:11 Firesphere

Good suggestion, I'll propose a PR :)

simonhammes avatar Nov 26 '24 14:11 simonhammes

@Fizzadar This issue can be closed (-> https://github.com/pyinfra-dev/pyinfra/pull/1247). I somehow forgot to include the appropriate Closes annotation.

simonhammes avatar Jan 05 '25 22:01 simonhammes