A package to simplify connecting to the TM1 REST API from Apache Airflow
Note: this was an old proof of concept for Airflow 1.x and probably isn't useful for most people
I've started a airflow 2 style provider at https://github.com/scrambldchannel/airflow-provider-tm1, help wanted ;)
A package that provides a hook to simplify connecting to the IBM Cognos TM1 / Planning Analytics REST API.
- Python 3.7+
- Airflow 1.x
Install with pip
pip install airflow-tm1
Create a connection in Airflow with at least the following parameters set:
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.tm1 import TM1Hook tm1_hook = TM1Hook(tm1_conn_id="tm1_default") tm1 = tm1_hook.get_conn()
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
See TM1py for more details.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for airflow_tm1-0.0.13-py3-none-any.whl