Skip to main content

image Coding Power BI with Python

What

With this package, you can edit Power BI through coding.

Installation and use

To use this module in Python, just install it with pip in the command line.

pip install pypbireport

In a Jupyter notebook or Python script, import the module. Using ppr is just a recommendation.

import pypbireport as ppr

Instantiate a PBIReport or a PBIModel object and follow examples in documentation use cases.

report = ppr.PBIReport(pbix_path)
model = ppr.PBIModel(pbix_path)

More in the documenation.

Why?

Power BI report developing can become boring sometime. Get visuals in right place, modify pages and settings a lot of bookmarks (buttons) behavior in report. Puffs 😣

I was lazy about doing this in the Power BI user interface. 🦥

I wonder one day having some way to coding PBI reports layout, so that I run a script and voilà, everything in its place.

So, here we are. This module for python does some of this work. Import it from your script, point out an existing PBIX file and check what you can do and some examples.

Features

  • Modify visuals in a Power BI report.
  • Add visuals and customize them.
  • Add bookmarks in a report to show and hide visuals.
  • Access the Power BI model and add measures to the model.

Licensing and Author

Be free to use this module in your Power BI development and don't hesitate to contact me.

Ismael Miranda
ismaelmiranda11@hotmail.com

Versions

Version Comment
0.1 Release
0.1.1 Bug fix in create_bookmark_slicer() function
0.2 Power BI Model and Power BI visual manipulation
0.2.1 Power BI Report peformance improvements

Metadata

Release files for pypbireport 0.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypbireport 0.2.4
File Size Uploaded
pypbireport-0.2.4.tar.gz 3.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypbireport 0.2.4
File Interpreter ABI Platform
pypbireport-0.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.9 MB

Release files / pypbireport-0.2.4.tar.gz

Download URL pypbireport-0.2.4.tar.gz
Size 3.4 MB
Tags Source
SHA-256 checksum
How to use checksums
a303742c36525edc89bdd2d07b2a0ee4d32c5c6f7d33022e5d2f386a1d584aec
BLAKE2b-256 checksum
How to use checksums
4f15e9d813bffad0dd9f0d42b4ef96f2a224f1c1c5722b5645f0b6efaed85ee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release files / pypbireport-0.2.4-py3-none-any.whl

Download URL pypbireport-0.2.4-py3-none-any.whl
Size 3.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1fe06da2d668cf67d6e192961fc2d54760c3894bf34c8001ea429d5d2bdb24e9
BLAKE2b-256 checksum
How to use checksums
23eabccf45895ed8fa8428d67ae71102cda2095a9c861ee41f08c804d9c16570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.2

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page