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
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.
Example Usage
fetch_tables --server "powerbi://api.powerbi.com/v1.0/myorg/YourWorkspace" --db_name "YourDatabaseName" --username "YourUsername" --password "YourPassword" --tables "Table1" "Table2"
Authentication
The package uses MSAL (Microsoft Authentication Library) to obtain an access token for authentication. The script is designed to work with or without Multi-Factor Authentication (MFA).
Silent Authentication: The script first attempts to acquire a token silently. Device Code Flow: If silent authentication fails, it falls back to the device code flow, which supports MFA.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file download_pbi_xmla-0.2.7.6.tar.gz
.
File metadata
- Download URL: download_pbi_xmla-0.2.7.6.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99fda242b52662a11c53dff485071b20b66bcf0c8d598905274f72a8fe17a057 |
|
MD5 | 03fe73ab95904f0b2a7356fc51838349 |
|
BLAKE2b-256 | c6bc0bd184687037692d808b0d2e3d7f3690fae513cde943127d36ee0b6a8e21 |
File details
Details for the file download_pbi_xmla-0.2.7.6-py3-none-any.whl
.
File metadata
- Download URL: download_pbi_xmla-0.2.7.6-py3-none-any.whl
- Upload date:
- Size: 10.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.4 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3edb70d504aa7d451248fea85d5c12519b9d2dbe99a2f0106d0a7adcaf87c222 |
|
MD5 | aee786966633bb0f27c87662b590449a |
|
BLAKE2b-256 | ab69fb61bc7ba7e02ead70a26656628c13ed71859318f9e9c0bbabc019ffa024 |