Skip to main content

Power BI API Admin to extract data of use metricts!

Project description

Power BI Admin API

PyPI Latest Release

Use scorb functionalities in your python application.

Instalation

pip install power-bi-api-admin

Configuration

Environment variables

To use power-bi-api-admin, you need to set two environment variables:

# ---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:

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

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

power_bi_api_admin-0.1.4.tar.gz (8.8 kB view hashes)

Uploaded Source

Built Distribution

power_bi_api_admin-0.1.4-py3-none-any.whl (23.3 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