{"categories":[{"label":"Database","url":"https://skillfed.io/packages/category/database/3"}],"enrichment":{"capability":"Builds MDX queries programmatically for TM1 and IBM Cognos Planning Analytics, eliminating manual syntax errors and escaping concerns.","skillfed_tags":["mdx-query-builder","tm1-cognos","olap"],"use_cases":["Build dynamic TM1 queries in Python without manually escaping brackets or worrying about missing parentheses","Generate MDX queries for Planning Analytics reports where query structure varies based on user input or configuration","Construct multi-axis MDX queries with calculated members and dimension properties for complex reporting","Refactor existing raw MDX strings into maintainable, version-controlled Python code","Create reusable query templates by composing Member, MdxHierarchySet, and MdxBuilder objects"],"what_it_does":"MDXpy is a Python library for constructing MDX (Multidimensional Expressions) queries used by IBM Cognos TM1 and Planning Analytics. Instead of writing raw MDX strings, you use classes like Member, MdxTuple, MdxHierarchySet, and MdxBuilder to assemble queries programmatically. The library handles syntax details\u2014bracket escaping, proper nesting, function formatting\u2014so you focus on the query logic rather than MDX grammar.\n\nThe package supports a broad set of MDX functions including TM1SUBSETALL, FILTER, TOPCOUNT, UNION, and others, and allows chaining operations in a functional style. It handles multi-axis queries, calculated members, dimension properties, and zero suppression configuration. The main benefit is reducing syntax errors and making queries easier to refactor and maintain, especially for teams less familiar with MDX syntax.","worth_installing":"Yes, if you work with TM1 or IBM Cognos Planning Analytics and write MDX queries regularly. The library eliminates a common source of errors and makes queries more maintainable. The high install friction is a minor drawback, but the active maintenance status and zero security vulnerabilities support adoption. Not relevant for projects that do not use TM1 or Planning Analytics."},"id":"mdxpy","links":{"html":"https://skillfed.io/packages/mdxpy","md":"https://skillfed.io/packages/mdxpy.md","pypi":"https://pypi.org/project/mdxpy/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2023-08-07","license_spdx":null,"license_treatment":"permissive","name":"mdxpy","python_support":"supports_current","summary":"A simple, yet elegant MDX library for TM1"},"popularity":{"monthly_downloads":291849,"position":7969,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.2"}
