Charles Liu
04/21/2021, 9:55 PMdata = results.write(df, **prefect.context)
print(data)
Kevin Kho
Charles Liu
04/21/2021, 10:01 PMKevin Kho
Charles Liu
04/21/2021, 10:04 PMKevin Kho
Charles Liu
04/21/2021, 10:06 PMbucket = "bucket"
location = "location"
MY_RESULTS = S3Result(...)
@task
def func():
foo
bar = MY_RESULTS.write()
print(bar)
with Flow():
client_secret = ...
first_step = ...
second_step = ...
Charles Liu
04/21/2021, 10:07 PMCharles Liu
04/21/2021, 10:07 PMKevin Kho
Kevin Kho
Charles Liu
04/21/2021, 10:20 PMCharles Liu
04/21/2021, 10:20 PMCharles Liu
04/21/2021, 10:20 PMAmanda Wee
04/21/2021, 10:21 PMbar.value
?Amanda Wee
04/21/2021, 10:21 PMAmanda Wee
04/21/2021, 10:22 PMbar.location
might be itCharles Liu
04/21/2021, 10:24 PMCharles Liu
04/21/2021, 10:24 PMKevin Kho
Amanda Wee
04/21/2021, 10:25 PMCharles Liu
04/21/2021, 10:26 PMCharles Liu
04/21/2021, 10:27 PMAmanda Wee
04/21/2021, 10:28 PMwrite
returns the Result
, which overrides __repr__
to print type and value, not the full location URI. You can construct the full location URI from the bucket
and location
attributes, but not directly.Kevin Kho
Marvin
04/21/2021, 10:32 PMKevin Kho
Charles Liu
04/21/2021, 10:34 PM