106 aws s3
In [ ]:
Copied!
# %pip install -U leafmap
# %pip install -U leafmap
In [ ]:
Copied!
from leafmap.common import s3_list_directories, s3_list_files, s3_get_file
from leafmap.common import s3_list_directories, s3_list_files, s3_get_file
In [ ]:
Copied!
bucket = "overturemaps-us-west-2"
prefix = "release"
region = "us-west-2"
bucket = "overturemaps-us-west-2"
prefix = "release"
region = "us-west-2"
In [ ]:
Copied!
directories = s3_list_directories(bucket, prefix, region=region, return_full_path=False)
directories
directories = s3_list_directories(bucket, prefix, region=region, return_full_path=False)
directories
In [ ]:
Copied!
prefix = "release/2025-07-23.0/theme=buildings/type=building"
prefix = "release/2025-07-23.0/theme=buildings/type=building"
In [ ]:
Copied!
files = s3_list_files(
bucket, prefix, region=region, skip_signature=True, return_full_path=True
)
files[:5]
files = s3_list_files(
bucket, prefix, region=region, skip_signature=True, return_full_path=True
)
files[:5]
In [ ]:
Copied!
path = "s3://us-west-2.opendata.source.coop/giswqs/nwi/state_boundary/AK.parquet"
output_file = "AK.parquet"
path = "s3://us-west-2.opendata.source.coop/giswqs/nwi/state_boundary/AK.parquet"
output_file = "AK.parquet"
In [ ]:
Copied!
s3_get_file(path, region=region, skip_signature=True, output_file=output_file)
s3_get_file(path, region=region, skip_signature=True, output_file=output_file)