Metadata-Version: 2.1
Name: pbiapi
Version: 0.1.1
Summary: A Python library for working with the Power BI API
Home-page: https://github.com/scottmelhop/PowerBI-API-Python
Author: Scott Melhop
Author-email: scott.melhop@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown

# 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](https://cognitedata.atlassian.net/wiki/spaces/FORGE/pages/1003814928/Power+BI+API+Set+Up) shows how to set up a SP App.

## Basic Usage

Install using pip
```sh
pip install pbiapi
```

Add the client to your project with:

```python
from pbiapi import PowerBIAPIClient
```

Initiate the client by running:
```python
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:
```python
pbi_client.get_workspaces()

# Or access attribute directly:
pbi_client.workspaces
```


