Metadata-Version: 2.1
Name: qlikflow
Version: 1.0.13
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.6,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Dist: apache-airflow-providers-telegram (>=1.0.2,<2.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

![GitHub stars](https://img.shields.io/github/stars/bintocher/qlikflow.svg)
![GitHub contributors](https://img.shields.io/github/contributors/bintocher/qlikflow.svg)
![GitHub license](https://img.shields.io/github/license/bintocher/qlikflow.svg)
![Pipy Installs](https://img.shields.io/pypi/dm/qlikflow)
![Last commit](https://img.shields.io/github/last-commit/bintocher/qlikflow)
![Issues](https://img.shields.io/github/issues/bintocher/qlikflow)

# qlikflow

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

## Information files

- Changelog : https://github.com/bintocher/qlikflow/blob/main/CHANGELOG.md

- Manual(en) : https://github.com/bintocher/qlikflow/blob/main/doc/readme.md

- This readme : https://github.com/bintocher/qlikflow/blob/main/README.md

## Install

``` bash
pip3 install qlikflow
```

## Upgrade

``` bash
pip3 install qlikflow -U
```

## 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: ``AIRFLOW_HOME/config/``

## Use in DAG-files

``` python

from airflow import DAG
from airflow.utils.dates import days_ago
from qlikflow 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)
```

This code convert into DAG like this:

![image](https://user-images.githubusercontent.com/8188055/117771014-020b1600-b279-11eb-9565-de198a12c9e2.png)

