checksum()

audfactory.checksum(path, type='md5')[source]

Calculate checksum for local or remote file.

Parameters
  • path – local file path, or URL to file path on Artifactory

  • type – checksum type to calculate, one of 'md5', 'sha1', 'sha256'

Return type

str

Returns

checksum

Examples

>>> checksum(
...     'https://audeering.jfrog.io/artifactory/'
...     'data-public/emodb/db/1.1.0/db-1.1.0.zip'
... )
'f4cfdbc821a070e1163d225b72b241a7'