# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .jl
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Julia 1.6.0
#     language: julia
#     name: julia-1.6
# ---

import Pkg
Pkg.add("AWS")

# +
using AWS: @service
@service S3

s3_bucket_name = "sample-s3-bucket-name"
file_path = "file.csv" 
output_file = S3.get_object(s3_bucket_name , file_path)

open("output.csv", "a") do file
    write(file, output_file)
end


# +
@service S3

body = read("output.csv", String)
s3_bucket_name = "sample-s3-bucket-name"
destination_file_name = "output.csv"
output_file = S3.put_object(s3_bucket_name, destination_file_name , Dict("body" => body))

StarcoderdataJupyterScriptsDedupFiltered