Skip to main content

Qlik Sense Client Managed

Airflow: Qlik Sense NPrinitng Provider

Qlik Sense NPrinting Provider to reload tasks from Airflow.


This repository provides basic Qlik NPrinting hooks and operators to trigger reloads of tasks available in a Qlik Sense NPrinting Site.

Requirements

The package has been tested with Python 3.7, Python 3.8.

Package Version
apache-airflow >2.0
requests_ntlm2 >=2 6.5.2

How to install it ?

To install it, download and unzip source and launch the following pip install command:

pip install .

You can also use

python setup.py install

How to use it ?


On this provider, you can use three way to let Airflow connecting to your Qlik Sense NPrinting Site.

• NTLM Authentification: Authentification with a username and password used in Qlik NPrinting in everyday life. Warning: Airflow will have the same rights of the user you provide.

• JWT Authentification (Not Available in development): Authentification with a jwt token that you provide to Airflow.

• Certificates Authentification (Not Available in development): Authentification with Certificates. Warning: In this case, you'll have to take client certificate generated by your Qlik Sense site during installation.

1. NTLM Authentification Example


Prerequisites:

• A login account with password • URI of your Qlik Sense NPrinting Site

Step 1: Login in your Airflow Server.

Step 2: Go into Admin > Connections > Add A New Record.

Step 3: Select [NTLM] Qlik Sense NPrinting.

Step 4 Provide following informations:

       • Connection Id of your choice
       • Qlik Sense NPrinting URL without any port
       • Qlik Username (example: DOMAIN\\USERNAME)
       • Qlik Password of the account used

Be careful this Qlik NPrinting Account must have privilieges to trigger the task.

Step 5 Save and your connection to Qlik Client NPrinting using NTLM auth is ready to use !

2. JWT Authentification Example


Prerequisites:

Builing the section. No available yet.

3. Certificate Authentifcation Example


Builing the section. No available yet.

4. Example: Creating a DAG with Qlik Sense NPrinting to reload tasks

You can now use the operators in your dags to trigger a reload of an app in Qlik Sense from Airflow

Example:

from airflow.providers.qlik_sense_nprinting.operators.reload_task_operator import QlikNPrintingReloadTaskOperator
from airflow import DAG
from airflow.utils.dates import days_ago
from datetime import timedelta

default_args = {
    'owner': 'airflow',
    'depends_on_past': False,
    'email': ['airflow@example.com'],
    'email_on_failure': False,
    'email_on_retry': False,
    'retries': 1,
    'retry_delay': timedelta(minutes=5)
}


with DAG(
    'QlikSenseTriggerTaskExample',
    default_args=default_args,
    description='A simple tutorial DAG reloading Qlik Sense NPrinting Task',
    schedule_interval=timedelta(days=1),
    start_date=days_ago(2),
    tags=['QlikNPrinting', 'Example'],
) as dag:
    
    nprintingTask = QlikNPrintingReloadTaskOperator(taskId="uiidofyournprintingtask", conn_id="hookNPrintingHook", task_id="MyHelloWorldNPrintingTask", waitUntilFinished=True)
    
    nprintingTask

Metadata

Release files for airflow-provider-qlik-sense-nprinting 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airflow-provider-qlik-sense-nprinting 0.0.1
File Size Uploaded
airflow_provider_qlik_sense_nprinting-0.0.1.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airflow-provider-qlik-sense-nprinting 0.0.1
File Interpreter ABI Platform
airflow_provider_qlik_sense_nprinting-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.0 kB

Release files / airflow_provider_qlik_sense_nprinting-0.0.1.tar.gz

Download URL airflow_provider_qlik_sense_nprinting-0.0.1.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
18c1c27948ecaa7cb63ed28c7a37e458b80b9b0fe871de1948e5fdeb6056751c
BLAKE2b-256 checksum
How to use checksums
c761432de87280475a5902115041f753b3834d18ca70396dcac2284575c79ca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.9

Release files / airflow_provider_qlik_sense_nprinting-0.0.1-py3-none-any.whl

Download URL airflow_provider_qlik_sense_nprinting-0.0.1-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf8cd38f649d8f06d7ddcd6bce6ee29e055012bb992695040e2d9594af2f0885
BLAKE2b-256 checksum
How to use checksums
93a2fa892f6c18aa6b0ee933cf44025db6a74cf41e9429c596b92b0b4f63f6ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page