This module allows you to create simple Apache Airflow DAG files-constructors for QlikView, Qlik Sense and NPrinting.
Project description
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
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:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qlikflow-1.0.14.tar.gz.
File metadata
- Download URL: qlikflow-1.0.14.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
588ae8b3ce2191610fe9c2a6d29b35d4a61eca8130aa9097f55643d9cc13c65c
|
|
| MD5 |
cce6a1b89eb66c48cb73e8db97e9062d
|
|
| BLAKE2b-256 |
1b5dad6d479868074966d654aa4f33693b033ed5a49781201a179b287cbfc75d
|
File details
Details for the file qlikflow-1.0.14-py3-none-any.whl.
File metadata
- Download URL: qlikflow-1.0.14-py3-none-any.whl
- Upload date:
- Size: 12.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.9.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b324aa04935de2ec3a4c6d1b15a6876ffb1f750f25d490ae4b424a8105af97f
|
|
| MD5 |
eac4afb2699f27378d84ba018c7c421a
|
|
| BLAKE2b-256 |
8b4de52e1dac3d2467514028e3729aa3ed9bc30ce1a5c8055780bff4f63fc8d6
|