def crypto_config_from_kwargs(fallback, **kwargs):
    """Pull all encryption-specific parameters from the request and use them to build a crypto config.

    :returns: crypto config and updated kwargs
    :rtype: dynamodb_encryption_sdk.encrypted.CryptoConfig and dict
    """
    try:
        crypto_config = kwargs.pop("crypto_config")
    except KeyError:
        try:
            fallback_kwargs = {"table_name": kwargs["TableName"]}
        except KeyError:
            fallback_kwargs = {}
        crypto_config = fallback(**fallback_kwargs)
    return crypto_config, kwargs
def crypto_config_from_kwargs ( fallback , ** kwargs ) : try : crypto_config = kwargs . pop ( "crypto_config" ) except KeyError : try : fallback_kwargs = { "table_name" : kwargs [ "TableName" ] } except KeyError : fallback_kwargs = { } crypto_config = fallback ( ** fallback_kwargs ) return crypto_config , kwargs
Pull all encryption-specific parameters from the request and use them to build a crypto config.

    :returns: crypto config and updated kwargs
    :rtype: dynamodb_encryption_sdk.encrypted.CryptoConfig and dict