Metadata-Version: 2.4
Name: connetra-airflow-lineage
Version: 1.0.0
Summary: Connetra OpenLineage integration for Apache Airflow
License: # PROPRIETARY SOFTWARE LICENSE
        
        **Copyright © 2026 Connetra. All Rights Reserved.**
        
        This software package ("Software") and all associated source code, documentation, files, and materials are proprietary and confidential property of Connetra ("Company").
        
        ## 1. Grant of License
        
        Subject to the terms of this License, the Company grants the user a limited, non-exclusive, non-transferable, non-sublicensable license to install and use the Software solely for its intended purpose and in accordance with the applicable documentation and terms provided by the Company.
        
        ## 2. Restrictions
        
        Except as expressly permitted in writing by the Company, you may not:
        
        * Copy, reproduce, or redistribute the Software or any portion thereof.
        * Modify, adapt, translate, or create derivative works based on the Software.
        * Reverse engineer, decompile, disassemble, or otherwise attempt to derive the source code of the Software, except to the extent expressly permitted by applicable law.
        * Sell, resell, sublicense, lease, rent, distribute, or otherwise make the Software available to any third party.
        * Remove, alter, or obscure any copyright, trademark, proprietary, or other legal notices contained in the Software.
        * Use the Software to develop or provide a competing product or service.
        * Publish, upload, or distribute copies of the Software or its source code without prior written authorization from the Company.
        
        ## 3. Ownership
        
        The Software, including all intellectual property rights, copyrights, trademarks, source code, object code, documentation, and related materials, remains the exclusive property of the Company.
        
        No ownership rights are transferred to the user under this License.
        
        ## 4. Third-Party Dependencies
        
        The Software may include or depend upon third-party libraries or components that are distributed under their own respective licenses. Such third-party components remain subject to their applicable licenses.
        
        Nothing in this License is intended to restrict rights granted by applicable third-party open-source licenses.
        
        ## 5. Public Distribution
        
        The Software may be made available through public package repositories, including PyPI, solely as a distribution mechanism.
        
        Public availability of the Software does not grant the public any ownership rights or additional permissions beyond those expressly granted under this License.
        
        ## 6. Termination
        
        This License is effective until terminated.
        
        The Company may terminate this License if the user materially breaches any provision of this License.
        
        Upon termination, the user must cease using the Software and, where legally and technically applicable, remove copies of the Software from their systems.
        
        ## 7. Disclaimer of Warranty
        
        THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, OR NON-INFRINGEMENT.
        
        TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE COMPANY SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR OTHER DAMAGES ARISING FROM OR RELATED TO THE USE OF THE SOFTWARE.
        
        ## 8. Governing Terms
        
        This License shall be interpreted and enforced in accordance with applicable law and any additional commercial agreement entered into between the Company and the user.
        
        If a separate written agreement exists between the Company and the user concerning the Software, that agreement shall govern to the extent of any conflict with this License.
        
        ## 9. Contact
        
        For licensing questions, commercial licensing, permissions, or authorization to use the Software beyond the rights granted herein, please contact the Company through its official contact channels.
        
        ---
        
        **Copyright © 2026 Connetra. All Rights Reserved.**
        
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: apache-airflow<4.0,>=3.0
Requires-Dist: apache-airflow-providers-openlineage<3.0,>=2.19
Requires-Dist: apache-airflow-providers-microsoft-azure
Dynamic: license-file

# connetra-airflow-lineage

Connetra OpenLineage integration for Apache Airflow. Registers Connetra's custom OpenLineage extractors globally with Airflow.

## Requirements

- Python >= 3.10
- Apache Airflow >= 3.0, < 4.0
- apache-airflow-providers-openlineage >= 2.19, < 3.0

## Installation

```bash
pip install connetra-airflow-lineage
```

## Features

This package provides custom OpenLineage extractors for Tableau and Power BI operators to ensure robust and detailed data lineage tracking.

### Supported Operators

#### Tableau

Extracts dataset lineage (workbooks, datasources, jobs, views), intelligently resolving Tableau Server connections and site mappings. Credentials are never included in OpenLineage datasets.

*Official Operator:*
- `TableauOperator`

*Custom Operators:*
- `TableauWorkbookRefreshOperator`
- `TableauDatasourceRefreshOperator`
- `TableauJobOperator`
- `TableauWorkbookOperator`
- `TableauDatasourceOperator`

#### Power BI

Extracts asset lineage for workspaces and items (datasets, reports, dashboards, dataflows).

*Official Microsoft Azure Provider Operators:*
- `PowerBIDatasetRefreshOperator`
- `PowerBIDatasetListOperator`
- `PowerBIWorkspaceListOperator`

*Custom Operators:*
- `PowerBIDataflowRefreshOperator`
- `PowerBIReportRefreshOperator`
- `PowerBIDashboardRefreshOperator`
- `PowerBIDataflowOperator`
- `PowerBIReportOperator`
- `PowerBIDashboardOperator`

## Usage

This package registers itself as an Airflow Plugin using standard entry points (`airflow.plugins`). Once installed, Airflow automatically detects the custom extractors (`ConnetraAirflowLineagePlugin`), and OpenLineage events will begin including lineage from the supported operators. No manual configuration in DAGs is required.

### Manual Configuration (Optional)

If you have Airflow plugins disabled or prefer to configure the extractors explicitly, you can register them using either `airflow.cfg` or an environment variable.

**Via `airflow.cfg`:**
```ini
[openlineage]
extractors = connetra_airflow_lineage.extractors.tableau.TableauExtractor;connetra_airflow_lineage.extractors.powerbi.PowerBIExtractor
```

**Via Environment Variable:**
```bash
export AIRFLOW__OPENLINEAGE__EXTRACTORS="connetra_airflow_lineage.extractors.tableau.TableauExtractor;connetra_airflow_lineage.extractors.powerbi.PowerBIExtractor"
```
