from kirin import Dataset
dataset = Dataset(
root_dir="{{ catalog.root_dir }}",
name="{{ dataset_name }}"{% if catalog.aws_profile %},
aws_profile="{{ catalog.aws_profile }}"{% endif %}{% if catalog.gcs_token %},
gcs_token="{{ catalog.gcs_token }}"{% endif %}{% if catalog.gcs_project %},
gcs_project="{{ catalog.gcs_project }}"{% endif %}{% if catalog.azure_account_name %},
azure_account_name="{{ catalog.azure_account_name }}"{% endif %}{% if catalog.azure_account_key %},
azure_account_key="{{ catalog.azure_account_key }}"{% endif %}{% if catalog.azure_connection_string %},
azure_connection_string="{{ catalog.azure_connection_string }}"{% endif %}
)
{% if checkout_commit %}
# Checkout to specific commit
dataset.checkout("{{ checkout_commit }}")
{% elif current_commit %}
# Checkout to latest commit (HEAD)
dataset.checkout("{{ current_commit }}")
{% else %}
# Checkout to latest commit (HEAD)
dataset.checkout()
# Or checkout to a specific commit
# dataset.checkout("commit_hash")
{% endif %}
This dataset has no commits yet.