Skip to main content

A pythonic approach to query SSAS data models

Project description


A pythonic approach to query SSAS data models.


pip install pyadomd

Query SSAS Tabular model

from sys import path
path.append('\\Program Files\\Microsoft.NET\\ADOMD.NET\\150')

from pyadomd import Pyadomd

conn_str = 'Provider=MSOLAP;Data Source=localhost;Catalog=AdventureWorks;'
query = """EVALUATE Product"""

with Pyadomd(conn_str) as conn:
    with conn.cursor().execute(query) as cur:

Integrates easily with pandas

from pandas import DataFrame

with Pyadomd(conn_str) as conn:
    with conn.cursor().execute(q) as cur:
        df = DataFrame(cur.fetchone(),
        columns=[ for i in cur.description])

Project details

Download files

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

Files for pyadomd, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size pyadomd-0.0.5.tar.gz (4.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page