Metadata-Version: 2.1
Name: qlikflow
Version: 1.0.3
Summary: This module allows you to create simple Apache Airflow DAG files-constructors for QlikView, Qlik Sense and NPrinting.
Home-page: https://github.com/bintocher/qlikflow
License: Apache 2.0
Author: bintocher
Author-email: schernov1@gmail.com
Requires-Python: >=3.7,<4.0
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: apache-airflow (>=2.0.0,<3.0.0)
Requires-Dist: requests (>=2.25.1,<3.0.0)
Requires-Dist: requests-ntlm (>=1.1.0,<2.0.0)
Requires-Dist: zeep (>=4.0.0,<5.0.0)
Project-URL: Documentation, https://github.com/bintocher/qlikflow/blob/main/doc/readme.md
Project-URL: Repository, https://github.com/bintocher/qlikflow
Description-Content-Type: text/markdown

# qlikflow

## Description

This module allows you to create simple Apache Airflow DAG files-constructors for QlikView, Qlik Sense and NPrinting.

## Install

``` bash
pip3 install qlikflow
```

## Create config-file

Open ``config_generator.py`` with your IDE editor, and set settings, save script

Then run script to create ``config.json`` file

Put this ``config.json`` file on your Apache Airflow server in folder with ``DAG``'s

## Use in DAG-files

``` python
from airflow import DAG
from airflow.utils.dates import days_ago
import qlikflow
from datetime import datetime

tasksDict = {
    u'qliksense. Test task': {
        'Soft' : 'qs1',
        'TaskId' : 'c5d80e71-f574-4655-8874-3a6e2aed6218',
        'RandomStartDelay' : 10, 
        },
    u'np100. run nprinting tasks' : {
        'Soft' : 'np100',
        'TaskId' : [
            'taskid1',
            'taskid2',
            'taskid3',
            'taskid4',
        ],
        'Dep' : {
            u'qliksense. Test task',
            }
        }
    }

default_args  = {
    'owner': 'test',
    'depends_on_past': False,
}

dag = DAG(
    dag_id = '_my_test_dag',
    default_args = default_args ,
    start_date = days_ago(1),
    schedule_interval = '@daily',
    description = 'Default test dag',
    tags = ['qliksense', 'testing'],
    catchup = False
)

airflowTasksDict = {}
qlikflow.create_tasks(tasksDict, airflowTasksDict, dag)
```

