Skip to content

helxplatform/avalon

Repository files navigation

Avalon

Avalon

Overview

Avalon is a command-line tool for interacting with LakeFS repositories. It allows users to upload (put) and download (get) files between a local machine and a LakeFS repository.

Installation

To install Avalon, use the following command:

pip install git+https://github.com/helxplatform/avalon.git

This will install Avalon as a command-line utility.

Usage

After installation, you can use Avalon by running:

avalon --help

Commands

Avalon provides two main commands: put and get.

General Arguments

  • -c, --cred: Path to the LakeFS credentials YAML file (required).

Get Files from LakeFS

To download files from a LakeFS repository:

avalon -c /path/to/credentials.yaml  get \
           -p remote/path/in/repo \
           -l /local/destination/path \
           -r repository_name \
           -b branch_name

Arguments:

  • -p, --remote-path: Remote file/directory path in the LakeFS repository.
  • -l, --local-path: Local directory to store the downloaded files.
  • -r, --repository: Name of the repository in LakeFS.
  • -b, --branch: The branch of the repository to download from.

Put Files to LakeFS

To upload files to a LakeFS repository:

avalon -c /path/to/credentials.yaml put \
           -p remote/destination/path \
           -l /local/source/path \
           -r repository_name \
           -b branch_name

Arguments:

  • -p, --remote-path: Remote destination path in the repository (default: root).
  • -l, --local-path: Local directory to upload (must be a directory).
  • -r, --repository: Name of the repository in LakeFS.
  • -b, --branch: The branch of the repository to upload to.

Example Usage

Uploading a Directory

avalon put -c lakefs_creds.yaml -p data/ -l /home/user/data -r my-repo -b main

Downloading a Directory

avalon get -c lakefs_creds.yaml -p data/ -l /home/user/data -r my-repo -b main

License

This project is licensed under the MIT License.

About

Api For wrapping Lakefs Server. Extracts specific metadata information structured to store data provenance.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors