Skip to main content

A package to simplify connecting to the TM1 REST API from Apache Airflow

Project description

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 ;)

airflow-tm1

A package that provides a hook to simplify connecting to the IBM Cognos TM1 / Planning Analytics REST API.

Requirements

  • Python 3.7+
  • Airflow 1.x
  • 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.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 tm1_hook.tm1

See TM1py for more details.

License

See LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

airflow_tm1-0.0.13-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file airflow_tm1-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for airflow_tm1-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 6bdf7f787001ca3e0a4f52d15b18e5f45e2abbd3d6247929c5f076e55108d395
MD5 518541deb05ece92cd1151d49a35ca54
BLAKE2b-256 4df65dd6bb58c10c3d117f161039d5143adf62e917c8747730255209c28a08aa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page