airflow-tm1-0.0.9
توضیحات
A package to simplify connecting to the TM1 REST API from Apache Airflow
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | airflow-tm1-0.0.9 |
| نام | airflow-tm1 |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alexander Sutcliffe |
| ایمیل نویسنده | sutcliffe.alex@gmail.com |
| آدرس صفحه اصلی | https://github.com/scrambldchannel/airflow-tm1 |
| آدرس اینترنتی | https://pypi.org/project/airflow-tm1/ |
| مجوز | - |
**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:
```python
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](https://github.com/cubewise-code/tm1py) for more details.
## License
See [LICENSE](https://github.com/scrambldchannel/airflow-tm1/LICENSE)
نیازمندی
| مقدار | نام |
|---|---|
| - | apache-airflow |
| - | TM1py |
| - | pre-commit |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl airflow-tm1-0.0.9:
pip install airflow-tm1-0.0.9.whl
نصب پکیج tar.gz airflow-tm1-0.0.9:
pip install airflow-tm1-0.0.9.tar.gz