print/input

The print and input methods are imported from pacu_main, and they are used to override the default print and input methods that come with Python. Both overrides allow for any text or output that is printed to the screen to also be written to the Pacu activity log. They add a few arguments as well, which let you customize how things will be printed. For instance, perhaps you just want to print something to the command log, but not the screen; in this case, you could use the output='file' argument. Or, maybe you want to only print to the output to the screen, but keep it out of the command log, in which case you could use the output='screen' argument.

The print command will also accept JSON dictionaries as its value, where it will then use the json library to dump the output in a formatted, easy-to-read view. In these cases where the output is a dictionary, the print function will recursively scan the dictionary for any occurrences of SecretAccessKey. If it finds any, it will censor the value of it prior to printing or logging, so that your secret keys are not logged to the Pacu screen/command log in cleartext.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.0.192