Skip to main content

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

Project description

qlikflow

Description

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

Install

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

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)

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.4.tar.gz (11.4 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.4-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qlikflow-1.0.4.tar.gz
  • Upload date:
  • Size: 11.4 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.4.tar.gz
Algorithm Hash digest
SHA256 fdf6c5053fda63fe6cb262e25294e6df9a8416e4d31c85562a62f0dadf0f234d
MD5 297508b5f6086ba54e46b090f477d651
BLAKE2b-256 86b2538eebbbd38850a88c20770188af8eef6dc71e445de26361457928a1be42

See more details on using hashes here.

File details

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

File metadata

  • Download URL: qlikflow-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0786b56ff1baeb633b2bb4ca2e09b3d4d553e70b38f540e8929d0bb7e309ae5b
MD5 b761f455290ccd6aced2c828a7884a7e
BLAKE2b-256 e9e195311ed7afc3f14327b8485850383a8849827fd3499617135bd4216398e4

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