Skip to content

Commit 036daa4

Browse files
committed
Bumping version to 0.1.3
1 parent affdfbb commit 036daa4

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Utility belt to handle data on AWS.
44
5-
[![Release](https://img.shields.io/badge/release-0.1.1-brightgreen.svg)](https://pypi.org/project/awswrangler/)
5+
[![Release](https://img.shields.io/badge/release-0.1.3-brightgreen.svg)](https://pypi.org/project/awswrangler/)
66
[![Downloads](https://img.shields.io/pypi/dm/awswrangler.svg)](https://pypi.org/project/awswrangler/)
77
[![Python Version](https://img.shields.io/badge/python-3.6%20%7C%203.7-brightgreen.svg)](https://pypi.org/project/awswrangler/)
88
[![Documentation Status](https://readthedocs.org/projects/aws-data-wrangler/badge/?version=latest)](https://aws-data-wrangler.readthedocs.io/en/latest/?badge=latest)
@@ -374,7 +374,7 @@ for row in wr.athena.query(query="...", database="..."):
374374
```py3
375375
import awswrangler as wr
376376

377-
outputs = wr.sagemaker.get_job_outputs("s3://...")
377+
outputs = wr.sagemaker.get_job_outputs("JOB_NAME")
378378
```
379379

380380
## Diving Deep

awswrangler/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__title__ = "awswrangler"
22
__description__ = "Utility belt to handle data on AWS."
3-
__version__ = "0.1.1"
3+
__version__ = "0.1.3"
44
__license__ = "Apache License 2.0"

awswrangler/sagemaker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ def get_job_outputs(self, job_name: str = None, path: str = None) -> Any:
2626
raise InvalidParameters("Specify either path, job_arn or job_name")
2727

2828
if job_name:
29-
path = self._client_sagemaker.describe_training_job(TrainingJobName=job_name)["ModelArtifacts"]["S3ModelArtifacts"]
29+
path = self._client_sagemaker.describe_training_job(
30+
TrainingJobName=job_name)["ModelArtifacts"]["S3ModelArtifacts"]
3031

3132
if not self._session.s3.does_object_exists(path):
3233
return None

awswrangler/session.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ def __init__(self,
7878
:param athena_kms_key: For SSE-KMS and CSE-KMS , this is the KMS key ARN or ID.
7979
:param redshift_temp_s3_path: redshift_temp_s3_path: AWS S3 path to write temporary data (e.g. s3://...)
8080
"""
81-
8281
self._profile_name: Optional[str] = (boto3_session.profile_name if boto3_session else profile_name)
8382
self._aws_access_key_id: Optional[str] = (boto3_session.get_credentials().access_key
8483
if boto3_session else aws_access_key_id)
@@ -134,7 +133,8 @@ def _load_new_boto3_session(self):
134133
self._profile_name = self._boto3_session.profile_name
135134
credentials = self._boto3_session.get_credentials()
136135
if credentials is None:
137-
raise AWSCredentialsNotFound("Please run aws configure: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html")
136+
raise AWSCredentialsNotFound(
137+
"Please run aws configure: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html")
138138
self._aws_access_key_id = credentials.access_key
139139
self._aws_secret_access_key = credentials.secret_key
140140
self._region_name = self._boto3_session.region_name

docs/source/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,5 +334,5 @@ Load and unzip SageMaker job output
334334
335335
import awswrangler as wr
336336
337-
outputs = wr.sagemaker.get_job_outputs("s3://...")
337+
outputs = wr.sagemaker.get_job_outputs("JOB_NAME")
338338

0 commit comments

Comments
 (0)