Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/verifyChecksumsInFileSecOfDspaceMETSFiles.py   archivematica(Download)
#import databaseInterface
from externals.checksummingTools import sha_for_file
from externals.checksummingTools import md5_for_file
 
def verifyMetsFileSecChecksums(metsFile, date, taskUUID, relativeDirectory="./"):
        fileFullPath = os.path.join(relativeDirectory, fileLocation)
        if checksumType == "MD5":
            checksum2 = md5_for_file(fileFullPath)
            eventDetail = "program=\"python\"; module=\"hashlib.sha256()\""
        elif checksumType == "sha256":

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/trimVerifyChecksums.py   archivematica(Download)
import uuid
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
from externals.checksummingTools import md5_for_file
from fileOperations import getFileUUIDLike
import databaseFunctions
        #    print >>sys.stderr, "Warning, extension mismatch(file/xml): ", file[:i], extension , file[i+1:] 
 
        objectMD5 = md5_for_file(filePath)
 
        if objectMD5 == xmlMD5:

src/a/r/archivematica-HEAD/src/MCPClient/lib/clientScripts/trimCreateRightsEntries.py   archivematica(Download)
from dateutil.relativedelta import relativedelta
sys.path.append("/usr/lib/archivematica/archivematicaCommon")
from externals.checksummingTools import md5_for_file
from fileOperations import getFileUUIDLike
import databaseFunctions