DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (dcc6d7a0dc00)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11
import os


def pop_aws_auth_from_env():
    """
    retrieves aws creds and deletes them from os.environ if present.
    """
    aws_key_id = os.environ.pop("AWS_ACCESS_KEY_ID", None)
    aws_secret_key = os.environ.pop("AWS_SECRET_ACCESS_KEY", None)

    return aws_key_id, aws_secret_key