Metadata-Version: 2.1
Name: power-bi-api-admin
Version: 0.1.4
Summary: Power BI API Admin to extract data of use metricts!
License: MIT
Author: stone_people_analytics
Author-email: systems-techpeople@stone.com.br
Maintainer: diogo56
Maintainer-email: diogo.amorim2001@gmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: adal (>=1.2.7,<2.0.0)
Requires-Dist: aiohttp (>=3.9.5,<4.0.0)
Requires-Dist: python-decouple (>=3.8,<4.0)
Description-Content-Type: text/markdown

# Power BI Admin API
[![PyPI Latest Release](https://img.shields.io/pypi/v/power-bi-api-admin.svg)](https://pypi.org/project/power-bi-api-admin/)

Use scorb functionalities in your python application.
## Instalation
```sh
pip install power-bi-api-admin
```

# Configuration
## Environment variables
To use power-bi-api-admin, you need to set two environment variables:
```dotenv
# ---DOTENV EXAMPLE---
PBI_TENANT_ID = #Your TENANT_ID
PBI_CLIENT_ID = #Your CLIENT_ID
PBI_SECRET = #Your SECRET
PBI_BASE_URL = "https://api.powerbi.com/v1.0/myorg/admin"
```

# Usage Example
You can use power-bi-api-admin in order to read registers.


## List registers
You can use get methods to list registers of system table. See the following example:
```python
from power_bi_api import PowerBiApp

# Instantiate PowerBiApp client object
client = PowerBiApp()

#Get the app controller
client_app = client.app

#Call the method thats return data from api
apps_data = client_app.get_apps().get("value")
```
