Skip to content

Instantly share code, notes, and snippets.

@amacal
Last active October 30, 2020 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amacal/0b92b8e4dd47593c86ab076f4501033b to your computer and use it in GitHub Desktop.
Save amacal/0b92b8e4dd47593c86ab076f4501033b to your computer and use it in GitHub Desktop.
from zipfile import ZipFile
with ZipFile('terraform_0.13.4_linux_amd64.zip') as archive:
# archive filename
assert archive.filename == 'terraform_0.13.4_linux_amd64.zip'
# its consistency
assert archive.testzip() == None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment