Skip to main content

prefect-lakefs

PyPI

Visit the full docs here to see additional examples and the API reference.

Prefect integrations for interacting with LakeFS services.

Welcome!

prefect-lakefs is a collection of Prefect tasks and flows which can be used to interact with lakeFS managed datalakes.

Jump to examples.

Resources

For more tips on how to use tasks and flows in a Collection, check out Using Collections!

Installation

Install prefect-lakefs with pip:

pip install prefect-lakefs

Requires an installation of Python 3.8+.

We recommend using a Python virtual environment manager such as pipenv, conda or virtualenv.

These tasks are designed to work with Prefect 2.0. For more information about how to use Prefect, please refer to the Prefect documentation.

Example Usage

Configure LakeFS Credentials and dive in.

import asyncio

from prefect_lakefs.credentials import LakeFSCredentials
from prefect_lakefs.tasks import list_branches

# You can configure this while adding a block in the prefect-ui or
#   you can save the block using .save() utility method provided by the block.
lakefs_creds = LakeFSCredentials(
        endpoint_url="http://localhost:8000/api/v1",
        access_key_id="AKIAIOSFODNN7EXAMPLE",
        secret_access_key="wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY",
    ).save("lakefs-creds")


@flow
def list_branches_for_example_repo():
    branches = list_branches(
        lakefs_credentials=LakeFSCredentials.load("lakefs-creds"),
        repository="example",
    )
    print(branches)



if __name__ == "__main__":
    # run the flow
    asyncio.run(list_branches())

Feedback

If you encounter any bugs while using prefect-lakefs, feel free to open an issue in the prefect-lakefs repository.

If you have any questions or issues while using prefect-lakefs, you can find help in either the Prefect Discourse forum or the Prefect Slack community or the LakeFS Slack Community.

Feel free to star or watch prefect-lakefs for updates too!

Contributing

If you'd like to help contribute to fix an issue or add a feature to prefect-lakefs, please propose changes through a pull request from a fork of the repository.

Here are the steps:

  1. Fork the repository
  2. Clone the forked repository
  3. Install the repository and its dependencies:
pip install -e ".[dev]"
  1. Make desired changes
  2. Add tests
  3. Insert an entry to CHANGELOG.md
  4. Install pre-commit to perform quality checks prior to commit:
pre-commit install
  1. git commit, git push, and create a pull request

Metadata

Release files for prefect-lakefs 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prefect-lakefs 0.4.0
File Size Uploaded
prefect-lakefs-0.4.0.tar.gz 38.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prefect-lakefs 0.4.0
File Interpreter ABI Platform
prefect_lakefs-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.7 kB

Release files / prefect-lakefs-0.4.0.tar.gz

Download URL prefect-lakefs-0.4.0.tar.gz
Size 38.0 kB
Tags Source
SHA-256 checksum
How to use checksums
de33da23b034998923637365d04d77594816493c5b6232d869c32dccc8e096e2
BLAKE2b-256 checksum
How to use checksums
765aae616c47580517da0988f80f75c373a44b2fda62c06b4267a052ca369a4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / prefect_lakefs-0.4.0-py3-none-any.whl

Download URL prefect_lakefs-0.4.0-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39117de3888026ec4f7ace80cda1693ee8cf78fc88a3810aae42e236ff207e13
BLAKE2b-256 checksum
How to use checksums
6da880c88e8cbb84c3688559006024f550a3f273cf277057a594c0df4ac3d662
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page