def get_connection(): """Shortcut method to establish a connection to Cloud Storage. Use this if you are going to access several buckets with the same set of credentials: >>> from gcloud import storage >>> connection = storage.get_connection() >>> bucket1 = storage.get_bucket('bucket1', connection=connection) >>> bucket2 = storage.get_bucket('bucket2', connection=connection) :rtype: :class:`gcloud.storage.connection.Connection` :returns: A connection defined with the proper credentials. """ return Connection.from_environment()