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.
To install Avalon, use the following command:
pip install git+https://github.com/helxplatform/avalon.gitThis will install Avalon as a command-line utility.
After installation, you can use Avalon by running:
avalon --helpAvalon provides two main commands: put and get.
-c, --cred: Path to the LakeFS credentials YAML file (required).
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-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.
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-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.
avalon put -c lakefs_creds.yaml -p data/ -l /home/user/data -r my-repo -b mainavalon get -c lakefs_creds.yaml -p data/ -l /home/user/data -r my-repo -b mainThis project is licensed under the MIT License.