This Singer tap was created using the Meletano SDK for Taps.
pipx install git+https://github.com/dataops-tk/tap-powerbi-metadata.gitclient_id- The unique client ID for the Power BI tenant.tenant_id- The unique identifier for the Power BI tenant.username- Username to use in the flow.password- Password to use in the auth flow.start_date- Optional. Earliest date of data to stream.
Note:
-
A sample config file is available at
.secrets/config.json.template -
A full list of supported settings and capabilities for this tap is available by running:
tap-powerbi-metadata --about
NOTE: Access to the Power BI REST API requires a service account (aka "Service Principal"), which must be created by someone with admin access to Azure Active Directory (AAD).
More information on this process is available under the Automation with service principals topic on docs.microsoft.com.
- If you do not have access to a Power BI tenant, this might be helpful:
TODO: Test out this process of creating a new tenant and service principal for testing purposes and so users/developers won't have to run this in prod to know it works properly.
You can easily run tap-powerbi-metadata by itself or in a pipeline using Meltano.
tap-powerbi-metadata --version
tap-powerbi-metadata --help
tap-powerbi-metadata --config CONFIG --discover > ./catalog.jsonSee the SDK dev guide for more instructions on how to use the Singer SDK to develop your own taps and targets.
To upgrade the version of SDK being used, go to the Release History tab on the pypi repo for the SDK and copy the version number only
Then in the command prompt, while in the repo run the following, after replacing the version number with the one you copied
poetry add singer-sdk==0.2.0If you've not already installed Poetry:
pipx install poetryTo update your local virtual environment:
poetry installExecute the tap locally with the poetry run prefix:
poetry run tap-powerbi-metadata --help
poetry run tap-powerbi-metadata --config=.secrets\config.json > Activity.jsonl
cat Activity.jsonl | target-csv
cat Activity.jsonl | target-snowflake --config=.secrets/target-config.jsonCreate tests within the tap-powerbi-metadata/tests subfolder and
then run:
poetry run pytestYou can also test the tap-powerbi-metadata CLI interface directly using poetry run:
poetry run tap-powerbi-metadata --help