# Use Python to interact with lakeFS

> [!WARNING]
>
> If your project is currently using the [legacy Python `lakefs-client`](<https://pypi.org/project/lakefs-client/>), please be aware that this version has been [deprecated](<https://docs.lakefs.io/posts/deprecate-py-legacy/index.md>). As of release **v1.44.0**, it's no longer supported for new updates or features.

## Getting Started

New to lakeFS Python SDK? Start with the **[High-Level SDK Guide](<https://docs.lakefs.io/reference/python/getting-started/index.md>)** to install and configure the recommended Python package.

The High-Level SDK provides an intuitive interface for:

- [Branches &amp; Merging](<https://docs.lakefs.io/reference/python/branches/index.md>) - Feature branch workflows
- [References, Commits &amp; Tags](<https://docs.lakefs.io/reference/python/refs/index.md>) - References, Commits &amp; Tags
- [Transactions](<https://docs.lakefs.io/reference/python/transactions/index.md>) - Atomic operations
- [Data Operations](<https://docs.lakefs.io/reference/python/data-operations/index.md>) - Batch operations and cleanup

## Integration Options

lakeFS provides multiple Python packages to suit different use cases and preferences:

| Package | Abstraction | Best For | Installation | Learning Curve |
| --- | --- | --- | --- | --- |
| **[High-Level SDK](<https://docs.lakefs.io/reference/python/getting-started/index.md>)** | High | Versioning operations, data operations, transactions | `pip install lakefs` | Low |
| **[Generated SDK, Enterprise](<https://docs.lakefs.io/reference/python/generated-sdk/index.md#choosing-a-package-for-your-lakefs-edition-and-version>)** | Low | Direct API access against lakeFS Enterprise, including its datasets and tenants APIs | `pip install lakefs-enterprise-sdk` | Medium |
| **[Generated SDK, Community](<https://docs.lakefs.io/reference/python/generated-sdk/index.md>)** | Low | Direct API access, full API surface, programmatic control | `pip install lakefs-sdk` | Medium |
| **[lakefs-spec](<https://docs.lakefs.io/reference/python/lakefs-spec/index.md>)** | High | File system operations, pandas/data science integration, S3-like interface | `pip install lakefs-spec` | Low |
| **[Boto / S3 Gateway](<https://docs.lakefs.io/reference/python/boto/index.md>)** | Medium | S3-compatible operations, existing S3 workflows, direct gateway access | `pip install boto3` | Low |

## References &amp; Resources

- **High Level Python SDK Documentation**: [https://pydocs-lakefs.lakefs.io](<https://pydocs-lakefs.lakefs.io>)
- **Generated Python SDK Documentation for lakeFS Enterprise**: [https://pydocs-enterprise-sdk.lakefs.io/docs/](<https://pydocs-enterprise-sdk.lakefs.io/docs/>)
- **Generated Python SDK Documentation for lakeFS Community**: [https://pydocs-sdk.lakefs.io](<https://pydocs-sdk.lakefs.io>)
- **lakefs-spec Project**: [https://lakefs-spec.org](<https://lakefs-spec.org>)
- **Boto S3 Router**: [https://github.com/treeverse/boto-s3-router](<https://github.com/treeverse/boto-s3-router>)
