Dataset.unrelease

Dataset.unrelease() → self

Unreleases the current version of the dataset, setting it back to the next version. A version of a dataset can only be unreleased within a 7-day window from when it was released, and cannot be unreleased if a next version already exists (in this case, first delete the next version).

Returns:

self (a Dataset)

Examples:

dataset = redivis.user("my_username").dataset("My dataset")
dataset = dataset.create_next_version()

upload = dataset.table("My table").upload("data.csv")

# We can upload new data to existing tables once we have a "next" version
with open("data.csv", "rb") as file:
    upload.upload_file(file)
    
# This moves the "next" version to current
dataset.release()

# If we realize we've made a mistake, we can reset to how the dataset was before
# it was released:
dataset.unrelease()

Last updated