Skip to main content

A Python library for working with the Power BI API

Project description

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()

# Or access attribute directly:
pbi_client.workspaces

Project details


Download files

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

Source Distribution

pbiapi-0.1.4b0.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

pbiapi-0.1.4b0-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page