Skip to main content

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

Project description

GitHub stars GitHub contributors GitHub license Pipy Installs Last commit Issues

qlikflow

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

Information files

Install

pip3 install qlikflow

Upgrade

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qlikflow-1.0.12.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qlikflow-1.0.12-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file qlikflow-1.0.12.tar.gz.

File metadata

  • Download URL: qlikflow-1.0.12.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Windows/10

File hashes

Hashes for qlikflow-1.0.12.tar.gz
Algorithm Hash digest
SHA256 39b6b33a8117517714a2ef557d4da877042fe194ba3421e8b3e5a9b47a327f58
MD5 87469a77a69a9dcd32fd4cf46ba0bc05
BLAKE2b-256 d6b98049953343e91d0b523338500224e213623e2a38b9b16f486449cb25d635

See more details on using hashes here.

File details

Details for the file qlikflow-1.0.12-py3-none-any.whl.

File metadata

  • Download URL: qlikflow-1.0.12-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.6 CPython/3.9.5 Windows/10

File hashes

Hashes for qlikflow-1.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c606dfaebdc06df5b017e4e6a1ea6de61c0405097ba0e25f96264bfa183b11e1
MD5 95e2bd45f27d2ce3db8a022cb73185e1
BLAKE2b-256 82fcffe141093a4c585b1134b2660d136576339f394113d3ccefe60133ee2a5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page