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

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("pcuci/mygame")

# Upload file
s3.upload_file(
    Bucket="mygame",  # 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="mygame",  # 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:
mygame
Endpoint URL:
https://dagshub.com/api/v1/repo-buckets/s3/pcuci
Public Key ID and Secret Access Key:
Your access token
Region:
us-east-1

Comments

Loading...