A package to simplify connecting to the TM1 REST API from Apache Airflow
Project description
airflow-tm1
A package that provides a hook to simplify connecting to the IBM Cognos TM1 / Planning Analytics REST API.
Requirements
- Python 3.6+
- Airflow
- TM1py
Installation
Install with pip pip install airflow-tm1
Usage
Create a connection in Airflow with at least the following parameters set:
- Host
- Login
- Port
- Extras
- ssl
Any other parameter accepted by the TM1py RestService constructor (eg base_url, namespace etc) can also be added as a key in the Extras field in the connection.
In your DAG file:
from airflow_tm1.hooks import TM1Hook
tm1_hook = TM1Hook(tm1_conn_id="tm1_default")
This will attempt to connect to the TM1 server using the details provided and initialise an instance of the TM1Service class than be accessed at tm1_hook.tm1
See TM1py for more details.
License
See LICENSE
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
Hashes for airflow_tm1-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4af2e92faed952a6623cf67481434bc7441d66052e9fc4e0cb72950c5ca3dd9 |
|
MD5 | 95775fc720a550a176f94b6b96eda317 |
|
BLAKE2b-256 | 3840fc9a80297ef8e446630f5159b4164f2c4dda3a444c8fa730fc122b46d136 |