Skip to content
A Python Library for working with the Power BI API
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
pbiapi
.gitignore
LICENSE
README.md
requirements.txt
setup.py

README.md

PowerBI-API-Python

This python package consists of helper functions for working with the Power BI API. To use this first make sure you have a Service Principal set up in Azure that has access to Power BI API. This guide shows how to set up a SP App.

Basic Usage

Install using pip

pip install pbiapi

Add the client to your project with:

from pbiapi import PowerBIAPIClient

Initiate the client by running:

pbi_client = PowerBIAPIClient(
    <Tenant Id>,
    <Application Id>,
    <Service Principal Secret>,
)

You can then get all the workspaces the Service Principal is admin of by running:

pbi_client.get_workspaces()
You can’t perform that action at this time.