Skip to main content

A package to fetch and save Power BI tables via XMLA endpoint

Project description

Power BI XMLA Endpoint Download to Parquet

This package allows you to fetch and save Power BI tables in Parquet format via the XMLA endpoint.

System Requirements

This package requires a Windows environment with .NET assemblies, as it relies on pythonnet to interact with .NET libraries. Latest version

Python Version Requirement

This package requires Python version >=3.9,<3.13.

Installation

Using Poetry

To install the package using Poetry, run:

poetry add download_pbi_xmla

Using pip

To install the package using pip, run:

pip install download_pbi_xmla

Usage

After installing the package, you can use the fetch_tables command to download and save Power BI tables in Parquet format. Below are the details on how to use the command.

Command Syntax

fetch_tables --server SERVER_URL --db_name DATABASE_NAME --username USERNAME --password PASSWORD --tables Table1 Table2 --path PATH_TO_SAVE [--use_mfa]

Parameters

--server: The XMLA endpoint URL for your Power BI service. --db_name: The name of the database you want to connect to. --username: Your username for the Power BI service. --password: Your password for the Power BI service. --tables: The list of tables you want to fetch. You can specify multiple tables separated by spaces. --path: The path where the Parquet files will be saved. --use_mfa: (Optional) Use Multi-Factor Authentication for authentication. If not specified, it will use just the username and password for authentication.

Example

Without MFA

fetch_tables --server "powerbi://api.powerbi.com/v1.0/myorg/YourWorkspace" --db_name "YourDatabaseName" --username "YourUsername" --password "YourPassword" --tables "Table1" "Table2" --path "C:/Users/dbhar/Documents/download_test"

With MFA

fetch_tables --server "powerbi://api.powerbi.com/v1.0/myorg/YourWorkspace" --db_name "YourDatabaseName" --username "YourUsername" --password "YourPassword" --tables "Table1" "Table2" --path "C:/Users/dbhar/Documents/download_test" --use_mfa

Authentication

The package supports two modes of authentication:

Without MFA: Uses just the username and password provided. With MFA: Uses the Microsoft Authentication Library (MSAL) to obtain an access token, supporting Multi-Factor Authentication (MFA).

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

download_pbi_xmla-0.2.8.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

download_pbi_xmla-0.2.8.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file download_pbi_xmla-0.2.8.0.tar.gz.

File metadata

  • Download URL: download_pbi_xmla-0.2.8.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11

File hashes

Hashes for download_pbi_xmla-0.2.8.0.tar.gz
Algorithm Hash digest
SHA256 7cf950326d7ea2bd4fbeebfeab722824c74b52498b6318e7bba724d721b5a830
MD5 7458bcff0da43f9745193eae25c9b3ea
BLAKE2b-256 f0b35c712f55485fc773b02c06a4e6c233c8c30617725b79e21976c96006ad78

See more details on using hashes here.

File details

Details for the file download_pbi_xmla-0.2.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for download_pbi_xmla-0.2.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fa99631041a5353e3ba9c3a89f4ef6097a53c6344daf5d4a52cbe572110985a9
MD5 618765a2cae1b06ec4a4693e575f993d
BLAKE2b-256 9baeb7fac151ced0fb505c4dcecc5c15d1f41ce5d469038926408d7187882dfa

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