@classmethod
    def from_bucket(cls, connection, bucket):
        if bucket is None:
            raise errors.NoContainerException

        # It appears that Amazon does not have a single-shot REST query to
        # determine the number of keys / overall byte size of a bucket.
        return cls(connection, bucket.name)
Create from bucket object.
dataset/ETHPy150Open ryan-roemer/django-cloud-browser/cloud_browser/cloud/boto_base.py/BotoContainer.from_bucket