Gilbert Quevauvilliers doesn’t need Spark for this:
This blog below explains how to use a Python only notebook to get all the Fabric items using the Fabric REST API.
NOTE: At the time of this blog post Feb 2025, Dataflow Gen2 is not included in the Fabric items, I am sure it will be there in the future.
NOTE II: This only gets the Fabric Items, which does not include the Power BI Items.
Despite the notes, Gilbert leads off with the main reason why you might want to use this: it takes up approximately 5% of the capacity units that a Spark-based notebook does to perform the same operation.