Module: scenarioplanner.linkingapi.url_generator

Utility library for generating a Looker Studio report and outputting the URL.

Contains the core logic for constructing the Looker Studio report URL, including setting the correct parameters.

This library requires authentication.

  • If you're developing locally, set up Application Default Credentials (ADC) in your local environment:

    https://cloud.google.com/docs/authentication/application-default-credentials

  • If you're working in Colab, run the following command in a cell to authenticate:

    from google.colab import auth
    auth.authenticate_user()
    

    This command opens a window where you can complete the authentication.

Functions

create_report_url(...): Creates a Looker Studio report URL based on the given spreadsheet.