Version
class Version
Constructors
Examples
my_org = redivis.organization("some_organization")
dataset = my_org.dataset("some_dataset")
current_version = dataset.version("1.0")
current_version.exists() # True
# Get the full API representation of the version and print its properties
print(current_version.get().properties)
for version in dataset.list_versions():
print(version.properties)my_org = redivis.organization("some_organization")
dataset = my_org.dataset("some_dataset")
current_version = dataset.version("current")
# can also call version.next_version() to go the other direction
previous_version = current_version.previous_version()
if previous_version is not None:
print(previous_version["tag"])my_org = redivis.organization("some_organization")
dataset = my_org.dataset("some_dataset")
historic_version = dataset.version("1.0")
# Delete the data in this version, potentially saving storage costs
# Note that users will no longer be able to query or export data in this version!
historic_version.delete()Attributes
Methods
Was this helpful?

