cubewise-code / tm1py-samples

Do more with TM1 with these ready to use TM1py samples.
https://github.com/cubewise-code/TM1py
MIT License
59 stars 44 forks source link
cubewise planning-analytics python tm1 tm1-rest-api tm1py

TM1py Samples is a great starting point to get up to speed with TM1py. It contains 60+ ready-to-use TM1py scripts such as:

All scripts are split into four categories:

Requirements

Usage

The first script you should run is check.py which enables you to check if TM1py can connect to your TM1 instance:

To run a script from a command line, download the TM1py-samples repository, navigate to the script folder and then just use the command python script_name.py. Python scripts can also be run from TM1 processes.

Documentation about TM1py

Other

Python Tutorial

If you are not familiar with the Python programming language you might want to look into some basic tutorials, before starting with TM1py. thenewboston offers awesome (and free) Python tutorials on his Youtube Channel https://www.youtube.com/watch?v=HBxCHonP6Ro

IDE

PyCharm is likely the best IDE for Python. It offers intelligent code completion, on-the-fly error checking and heaps of other features. It allows you to save time and be more productive. JetBrains offers a free Community Edition of PyCharm https://www.jetbrains.com/pycharm/

Issues

If you find issues, sign up in Github and open an Issue in this repository

Contribution

If you wrote cool sample scripts with TM1py, that might be useful for others, feel free to push them to this repository