1.3.0
TM1py version 1.3.0 is now available. Getting started with TM1py
Enhancements
- TM1py now supports SSO authentication to TM1 using CAM gateway. Previously to connect to a TM1 instance with CAM security, you had to put your user name and passord in the configuration file as below:
[tm1srv01]
address=localhost
port=8884
user=vviau
password=YourPassword
namespace=CUBEWISE
ssl=True
Now you can replace your user and password with the new gateway
parameter such as below
[tm1srv02]
address=localhost
port=8884
namespace=CUBEWISE
gateway=http://localhost:80/ibmcognos/cgi-bin/cognos.cgi
ssl=True
TM1py will use your Windows login to authenticate with TM1. Thanks to adscheevel for adding this new feature to TM1py.
-
The
whoami
method has been added to get the user and group assignments, associated with your active session. #106 -
Get default element of a hierarchy without need to allocate full hierarchy in memory using the two new
HierarchyService
methods. #95:
get_default_member(dimension_name, hierarchy_name)
update_default_member(dimension_name, hierarchy_name, member_name)
-
New boolean parameter to enable base64 encoded passwords in the TM1Service constructor:
decode64
. #87 -
A new
remove_element(element_name)
method has been added to the Hierarchy class. It implicitly removes all edges from the hierarchy that are related to the element. #83 -
Introducing a new
skip_contexts (boolean)
argument in allexecute_mdx
functions to reduce the response size by omitting the title elements and thus speeds up the execution. #82 -
Two new methods have been added to the
CubeService
to query and update technical dimension order of a cube. #81 -
Updating a subset is now done entirely through the TM1 REST API instead of calling the
SubsetDeleteAllElements
TI function behind the scenes. #93 -
New argument in TM1Service constructor:
connection_pool_size
allows for a custom sized http connection pool. Required when using TM1py in a multithreaded environment. -
New method in CellService:
relative_proportional_spread
How to upgrade TM1py
To upgrade TM1py, just use the following command:
pip install TM1py --upgrade