aws_encryption_sdk_cli

AWS Encryption SDK CLI.

Functions

cli([raw_args])

CLI entry point.

process_cli_request(stream_args, parsed_args)

Maps the operation request to the appropriate function based on the type of input and output provided.

stream_kwargs_from_args(args, ...)

Builds kwargs object for aws_encryption_sdk.stream based on argparse arguments and existing CryptoMaterialsManager.

aws_encryption_sdk_cli.cli(raw_args: Optional[List[str]] = None) Optional[str]

CLI entry point. Processes arguments, sets up the key provider, and processes requested action.

Returns

Execution return value intended for sys.exit()

aws_encryption_sdk_cli.process_cli_request(stream_args: Dict[str, Union[aws_encryption_sdk.materials_managers.base.CryptoMaterialsManager, str, Dict[str, str], aws_encryption_sdk.identifiers.AlgorithmSuite, int]], parsed_args: argparse.Namespace) None

Maps the operation request to the appropriate function based on the type of input and output provided.

Parameters
  • stream_args (dict) – kwargs to pass to aws_encryption_sdk.stream

  • args (argparse.Namespace) – Parsed arguments from argparse

aws_encryption_sdk_cli.stream_kwargs_from_args(args: argparse.Namespace, crypto_materials_manager: aws_encryption_sdk.materials_managers.base.CryptoMaterialsManager) Dict[str, Union[aws_encryption_sdk.materials_managers.base.CryptoMaterialsManager, str, Dict[str, str], aws_encryption_sdk.identifiers.AlgorithmSuite, int]]

Builds kwargs object for aws_encryption_sdk.stream based on argparse arguments and existing CryptoMaterialsManager.

Parameters
  • args (argparse.Namespace) – Parsed arguments from argparse

  • crypto_materials_manager (aws_encryption_sdk.materials_manager.base.CryptoMaterialsManager) – Existing CryptoMaterialsManager

Returns

Translated kwargs object for aws_encryption_sdk.stream

Return type

dict