Philipp Adelt

Poetic justice of cause and effect

TwitterGitHubScientific Research

Consulting services

I offer ERP and big-data infrastructure consulting and development with an agile team of professionals.

If you're interested in working together, feel free to contact me.

More about me. (Source)

    # In eu-central we support both host styles for S3

def detect_potential_s3sigv4(func):
    def _wrapper(self):
        if os.environ.get('S3_USE_SIGV4', False):
            return ['hmac-v4-s3']

        if boto.config.get('s3', 'use-sigv4', False):
            return ['hmac-v4-s3']

        if hasattr(self, 'host'):
            # If you're making changes here, you should also check
            # ``boto/iam/``, as several things there are also
            # endpoint-related.
            for test in SIGV4_DETECT:
                if test in
                    return ['hmac-v4-s3']

        return func(self)
    return _wrapper