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.5.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

power_bi_api_admin-0.1.5-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

Details for the file power_bi_api_admin-0.1.5.tar.gz.

File metadata

  • Download URL: power_bi_api_admin-0.1.5.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for power_bi_api_admin-0.1.5.tar.gz
Algorithm Hash digest
SHA256 0cdeeb0864a5fbeef1e6afaf8a3456f4e48a43c9241951fb43512e86cbb506e9
MD5 06d3de7583c0356c92deac5e7924d41f
BLAKE2b-256 d71da4f1bad23e4fe8163a0636be870248f412fe70524361e9e2d6b1f4fbcda0

See more details on using hashes here.

File details

Details for the file power_bi_api_admin-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for power_bi_api_admin-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4196b82be10f64c841d6660648b5ca0c77be804ee07a2a09b718aa596d988b37
MD5 6eed3fc39741b16fed5750abf2e620ca
BLAKE2b-256 ffcdedb10eb1a86dc44425a53762db4703abd0b2877bc65640706da0f7ea221d

See more details on using hashes here.

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