Barak Amar
import lakefs_client
from lakefs_client import models
from lakefs_client.client import LakeFSClient
# lakeFS credentials and endpoint
configuration = lakefs_client.Configuration()
configuration.username = '<lakefs user key>'
configuration.password = '<lakefs secret>'
configuration.host = '<lakefs endpoint url>'
client = LakeFSClient(configuration)
data = client.objects.get_object(repository='<repository>', ref='<branch or reference>', path='<path to file>').read()
print(data)
Rahul Kumar
08/01/2021, 4:17 AMRahul Kumar
08/05/2021, 4:58 AMGuy Hardonag
08/05/2021, 5:17 AMlist_objects
command, then you could read them using the get_object
command.Guy Hardonag
08/05/2021, 5:35 AM