{"id":20290677,"url":"https://github.com/gocardless/airflow-looker","last_synced_at":"2025-05-07T19:31:47.669Z","repository":{"id":52412723,"uuid":"267014929","full_name":"gocardless/airflow-looker","owner":"gocardless","description":"A collection of Airflow extensions to provide integration with Looker","archived":false,"fork":false,"pushed_at":"2021-04-29T21:49:08.000Z","size":20,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2023-03-10T20:18:34.899Z","etag":null,"topics":["airflow","airflow-looker","looker"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/airflow-looker/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gocardless.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-26T10:38:06.000Z","updated_at":"2022-05-09T12:01:50.000Z","dependencies_parsed_at":"2022-09-06T06:00:29.473Z","dependency_job_id":null,"html_url":"https://github.com/gocardless/airflow-looker","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fairflow-looker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fairflow-looker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fairflow-looker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gocardless%2Fairflow-looker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gocardless","download_url":"https://codeload.github.com/gocardless/airflow-looker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224641681,"owners_count":17345366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["airflow","airflow-looker","looker"],"created_at":"2024-11-14T15:08:41.550Z","updated_at":"2024-11-14T15:08:42.278Z","avatar_url":"https://github.com/gocardless.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"**DEPRECATED**: No longer updated\n\n# airflow-looker\n\nThis is a collection of [Airflow](https://airflow.apache.org/) extensions to provide integration with [Looker](https://www.looker.com).\n\n```py\nwith DAG(dag_id='looker_update_datagroup', schedule_interval='@daily') as dag:\n  LookerUpdateDataGroupByIDOperator(\n    datagroup_id=123\n  )\n```\n\n## Usage\n\nThere is one operator currently implemented:\n\n* `LookerUpdateDataGroupByIDOperator`\n  * Calls the [`update_datagroup` API](https://docs.looker.com/reference/api-and-integration/api-reference/v3.0/datagroup#update_datagroup). Accepts the following arguments:\n    * `datagroup_id`\n      * The ID of the datagroup to update. Required.\n    * `stale_before`\n      * Timestamp before which cache entries are considered stale. Defaults to now.\n\nYou can also use the hook directly. The two methods that are implemented for use are:\n\n* `call`\n  * Call the Looker API. Accepts the following arguments:\n    * `method`\n      * The method of the call (`GET`, `POST`, etc). Required.\n    * `endpoint`\n      * The endpoint to be called i.e. `looks/run/1`. Required.\n    * `data`\n      * Payload to be uploaded or request parameters. Required.\n    * `headers`\n      * Additional headers to be passed through as a dictionary. Optional.\n* `get_look_sql`\n  * Gets an SQL query from a Looker look resource and returns the SQL as a string. Accepts the following arguments:\n    * `look_id`\n      * Unique identifier for a look resource. Required.\n\n### Connection\n\nTo use either the operator or the hook you need to pass in a connection ID. This connection needs to have the the host, the login (`client_id`) and the password (`client_secret`) defined.\n\nTo create a connection, follow the [Airflow documentation](https://airflow.apache.org/docs/stable/howto/connection/index.html).\n\n## Building Locally\n\nTo install from the repository, it's recommended to first create a virtual environment:\n\n```bash\npython3 -m venv .venv\n\nsource .venv/bin/activate\n```\n\nInstall using `pip`:\n\n```bash\npip install .\n```\n\n## Testing\n\nTo run tests locally, first create a virtual environment (see [Building Locally](https://github.com/gocardless/airflow-looker#building-locally) section)\n\nInstall dependencies:\n\n```bash\npip install -e .[dev]\n```\n\nRun the tests:\n\n```bash\npython -m pytest tests/ -sv\n```\n\n## Code style\n\nThis project uses [flake8](https://flake8.pycqa.org/en/latest/).\n\nTo check your code, first create a virtual environment (see [Building Locally](https://github.com/gocardless/airflow-looker#building-locally) section):\n\n```bash\npython -m flake8 airflow_looker/ tests/ setup.py\n```\n\n## License \u0026 Contributing\n\n* This is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n* Bug reports and pull requests are welcome on GitHub at https://github.com/gocardless/airflow-looker.\n\nGoCardless ♥ open source. If you do too, come [join us](https://gocardless.com/about/jobs).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocardless%2Fairflow-looker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgocardless%2Fairflow-looker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgocardless%2Fairflow-looker/lists"}