Skip to main content

Power BI API client

Reason this release was yanked:

wrong module name

Project description

pbipandas

CI PyPI

pbipandas is a lightweight Python client for the Power BI REST API that helps you authenticate and retrieve data directly into Pandas DataFrames. This package helps to get metadata details for all items (including datasets, dataflows, reports, refresh logs, datasources) in all of your workspaces.


🚀 Features

  • 🗂️ Get metadata for all items in all workspaces
  • 🔐 Easy OAuth2 authentication using client credentials
  • 📊 Seamless integration with Pandas for data analysis
  • ⚡ Simplifies working with Power BI API endpoints

📦 Installation

pip install pbipandas

Or for development:

git clone https://github.com/hoangdinh2710/pbipandas.git
cd pbipandas
pip install -e .

🔧 Usage

from pbipandas import PowerBIClient

pbi_client = PowerBIClient(
    tenant_id="your-tenant-id",
    client_id="your-client-id",
    client_secret="your-client-secret"
)

# Example: 
1. get_all_dataset
dataset_df = pbi_client.get_all_datasets()
2. Get all dataset history logs
dataset_df = pbi_client.get_all_dataset_refresh_history()
3. Get all dataset sources
dataset_sources_Df = pbi_client.get_all_dataset_sources()

🧪 Running Tests

pytest

🧹 Lint and Format Code

flake8 .
black .

📄 License

MIT License


🙌 Contributing

Pull requests are welcome! Please open an issue first to discuss what you would like to change.


✨ Reference

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

pbipandas-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pbipandas-0.1.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pbipandas-0.1.1.tar.gz.

File metadata

  • Download URL: pbipandas-0.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for pbipandas-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d6ff56588c372681706c900b54a9375dbd87aa4fe643c7e04c778d872478f01c
MD5 f159ce7407d5a71afed74e5c5388b7c4
BLAKE2b-256 0473e69ac9f085dc645bea0523c927f35fdcf1124af963c2d4bceadf40b746e9

See more details on using hashes here.

File details

Details for the file pbipandas-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pbipandas-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.13

File hashes

Hashes for pbipandas-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b36f224d0854b376caf8c49fc1ff4842a95230ee9112e60e2d2f9ce802a8b6b1
MD5 d80da97da3e7650100bc4414bc64a7b6
BLAKE2b-256 9b3985a39917388870a4b227b945ac6f5b32cbd81e8e7ec2b2d8906fe53a01bc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page