<jupyter_start><jupyter_text>[![AWS Data Wrangler](_static/logo.png "AWS Data Wrangler")](https://github.com/awslabs/aws-data-wrangler) 2 - Sessions  How Wrangler handle Sessions and AWS credentials?After version 1.0.0 Wrangler absolutely relies on [Boto3.Session()](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html) to manage AWS credentials and configurations.Wrangler will not store any kind of state internally, and users is in charge of all the Sessions management, if necessary.Most Wrangler functions receive the optional `boto3_session` argument. If None is received, a default boto3 Session will be temporary created to run the function.<jupyter_code>import awswrangler as wr
import boto3<jupyter_output><empty_output><jupyter_text>Using the default Sessions<jupyter_code>wr.s3.does_object_exist("s3://noaa-ghcn-pds/fake")<jupyter_output><empty_output><jupyter_text>Using custom Sessions<jupyter_code>wr.s3.does_object_exist("s3://noaa-ghcn-pds/fake", boto3_session=boto3.Session(region_name="us-east-2"))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1056533827618165, 'fraction_numerical': 0.015755329008341055, 'mean_word_length': 7.3076923076923075, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '476210', 'license': 'Apache-2.0', 'n_tokens_mistral': 365, 'n_tokens_neox': 353, 'n_words': 82, 'path': 'tutorials/02 - Sessions.ipynb', 'repo_name': 'mrshu/aws-data-wrangler', 'size': '1079'}