Get Deployment Pipelines from Power BI API with Python

From the archive. Published 4 years ago. Power BI and Fabric have changed since, so parts of this may be out of date or describe features that no longer work this way.
USE PYTHON TO GET DATA FROM POWER BI APIs
…such as the deployment pipelines a user or service principle has access to
IN THIS ARTICLE
- Get Deployment Pipelines from Power BI Admin API using Python

HOW TO SET IT UP?
I wrote a post about setting up a Service Principal, permissions & settings to get you started, as well as explaining the Authentication. You can find that post, here.
Code is provided as-is with no guarantees or warranties of any kind. Something I did quickly in spare time.
DATA GOBLINS