Dependencies:
- libuuid (sometimes part of e2fsprogs)
- sqlite3
+ - Python (2.5 or later)
- boto, the python interface to Amazon's Web Services (for S3 storage)
http://code.google.com/p/boto
- paramiko, SSH2 protocol for python (for sftp storage)
http://www.lag.net/paramiko/
- - python 2.5+ for sftp storage backend
Building should be a simple matter of running "make". This will produce
an executable called "cumulus".
"""
from __future__ import division
-import os, re, sha, tarfile, tempfile, thread
+import hashlib, os, re, tarfile, tempfile, thread
from pysqlite2 import dbapi2 as sqlite3
import cumulus.store, cumulus.store.file
return "<%s %s>" % (self.__class__, self.__dict__)
CHECKSUM_ALGORITHMS = {
- 'sha1': sha.new
+ 'sha1': hashlib.sha1,
+ 'sha256': hashlib.sha256,
}
class ChecksumCreator: