snakemake/remote/S3.py
def key_size(self, bucket_name, key):
        """Returns the size of a key based on a HEAD request

        Args:
            bucket_name: the name of the S3 bucket to use (bucket name only, not ARN)
            key: the key of the object to delete from the bucket

        Returns:
            Size in kb
        """
        assert bucket_name, "bucket_name must be specified"
        assert key, "Key must be specified"

        k = self.s3.Object(bucket_name, key)

        return k.content_length // 1024
Returns the size of a key based on a HEAD request

        Args:
            bucket_name: the name of the S3 bucket to use (bucket name only, not ARN)
            key: the key of the object to delete from the bucket

        Returns:
            Size in kb
        
Returns the size of a key based on a HEAD request
Returns the size of a key based on a HEAD request
def key_size(self, bucket_name, key):
        assert bucket_name, "bucket_name must be specified"
        assert key, "Key must be specified"
        k = self.s3.Object(bucket_name, key)
        return k.content_length // 1024
def key_size ( self , bucket_name , key ) : assert bucket_name , "bucket_name must be specified" assert key , "Key must be specified" k = self . s3 . Object ( bucket_name , key ) return k . content_length // 1024
Returns the size of a key based on a HEAD request
Returns the size of a key based on a HEAD request
"""Returns the size of a key based on a HEAD request

        Args:
            bucket_name: the name of the S3 bucket to use (bucket name only, not ARN)
            key: the key of the object to delete from the bucket

        Returns:
            Size in kb
        """
Size in kb
Size in kb
self
bucket_name
the name of the S3 bucket to use (bucket name only, not ARN)
the name of the S3 bucket to use ( bucket name only not ARN )
key
the key of the object to delete from the bucket
the key of the object to delete from the bucket