from s3bucketmap import S3BucketMap import sys bucketMap = S3BucketMap(sys.argv[1], sys.argv[2], sys.argv[3], "testprefix/") bucketMap["testKey"] = "some value" print "bucketMap[testKey] = %r" % bucketMap["testKey"] print "testKey in bucketMap = %r" % ("testKey" in bucketMap) print "testKey2 in bucketMap = %r" % ("testKey2" in bucketMap) bucketMap["anotherTestKey"] = "another value" for key in bucketMap: print "key = %s" % key