Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel
..

DagsHub Storage Bucket

How to interact with the bucket

    from dagshub import get_repo_bucket_client
# Get a boto3.client object
s3 = get_repo_bucket_client("Dean/carbon-sequestration-vaud")

# Upload file
s3.upload_file(
    Bucket="carbon-sequestration-vaud",  # name of the repo
    Filename="local.csv",  # local path of file to upload
    Key="remote.csv",  # remote path where to upload the file
)
# Download file
s3.download_file(
    Bucket="carbon-sequestration-vaud",  # name of the repo
    Key="remote.csv",  #  remote path from where to download the file
    Filename="local.csv",  # local path where to download the file
)

    
  

Connection credentials

Bucket Name:
carbon-sequestration-vaud
Endpoint URL:
https://dagshub.com/api/v1/repo-buckets/s3/Dean
Public Key ID and Secret Access Key:
Your access token
Region:
us-east-1

Comments

Loading...