lakefs.tag module

Module containing lakeFS tag implementation

class lakefs.tag.Tag(repository_id, tag_id, client=None)[source]

Bases: Reference

Class representing a tag in lakeFS.

create(source_ref, exist_ok=False)[source]

Create a tag from the given source_ref

Parameters:
  • source_ref (Union[str, Reference, Commit]) – The reference to create the tag on (either ID or Reference object)

  • exist_ok (Optional[bool]) – If True returns the existing Tag reference otherwise raises exception

Return type:

Tag

Returns:

A lakeFS SDK Tag object

Raises:
delete()[source]

Delete the tag from the lakeFS server

Raises:
Return type:

None