{"id":15977940,"url":"https://github.com/yu-iskw/lightdash-ops","last_synced_at":"2025-03-17T22:31:11.393Z","repository":{"id":177140309,"uuid":"659511760","full_name":"yu-iskw/lightdash-ops","owner":"yu-iskw","description":"A python-based CLI to operate Lightdash","archived":false,"fork":false,"pushed_at":"2025-01-11T04:24:44.000Z","size":114,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-28T04:30:19.917Z","etag":null,"topics":["dbt","lightdash","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/lightdash-ops/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yu-iskw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-28T02:10:39.000Z","updated_at":"2025-01-11T04:24:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"790e7ed1-d028-419b-82bd-85be45265820","html_url":"https://github.com/yu-iskw/lightdash-ops","commit_stats":{"total_commits":26,"total_committers":1,"mean_commits":26.0,"dds":0.0,"last_synced_commit":"2bb15bb1c10bd17f9da086adf3001f3e20585986"},"previous_names":["yu-iskw/lightdash-ops"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-iskw%2Flightdash-ops","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-iskw%2Flightdash-ops/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-iskw%2Flightdash-ops/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yu-iskw%2Flightdash-ops/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yu-iskw","download_url":"https://codeload.github.com/yu-iskw/lightdash-ops/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243891321,"owners_count":20364575,"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":["dbt","lightdash","python"],"created_at":"2024-10-07T23:03:09.035Z","updated_at":"2025-03-17T22:31:11.015Z","avatar_url":"https://github.com/yu-iskw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lightdash-ops\n\nThis is a python-based [Lightdash](https://www.lightdash.com/).\nIt focuses on to operate resources like users' roles and spaces on Lightdash by calling, as [the official CLI](https://docs.lightdash.com/api/v1/), as [The Lightdash CLI \\| Documentation \\| Lightdash](https://docs.lightdash.com/guides/cli/intro/) enables us to deploy projects and so on.\nFor instance, we can get members\n\n## Install\n\n```commandline\npip install -U lightdash-ops\n```\n\n## Settings\n\nWe can configure the API endpoint and so on with environment variables.\nWe can also take advantage of an `.env` file.\nThe template is located at [.env.template](.env.template).\n\n```commandline\n# .env\nLIGHTDASH_URL=https://localhost:8000\n...\n```\n\n### How to use\n\nThe CLI requires a personal access token to call the Lightdash APIs.\n[The official documentation](https://docs.lightdash.com/references/personal_tokens/) describes how to get personal access tokens.\n\nThe CLI provides many sub commands.\nPlease refer to the detailed documentation in [docs/cli.ms](./docs/cli.md).\n\n#### Example\n\nThe subsequent command is used to get all members in an organization.\n\n```commandline\n$ export LIGHTDASH_URL=\"https://localhost:8000\"\n$ export LIGHTDASH_API_KEY=\"YOUR-LIGHTDASH-PERSONAL-ACCESS-TOKEN\"\n$ lightdash-ops organization get-members\n[\n  {\n    \"member_uuid\": \"ade0aef5-bca8-4cbe-819b-07803390ffb0\",\n    \"email\": \"lightdash-member@example.com\",\n    \"role\": \"member\"\n  },\n  {\n    \"member_uuid\": \"d7ee948b-26d6-461a-b289-906cc7bb0c73\",\n    \"email\": \"lightdash-admin@example.com\",\n    \"role\": \"admin\"\n  }\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyu-iskw%2Flightdash-ops","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyu-iskw%2Flightdash-ops","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyu-iskw%2Flightdash-ops/lists"}