Skip to main content

The CLI enables us to operate resources on Lightdash.

Project description

lightdash-ops

This is a python-based Lightdash. It focuses on to operate resources like users' roles and spaces on Lightdash by calling, as the official CLI, as The Lightdash CLI | Documentation | Lightdash enables us to deploy projects and so on. For instance, we can get members

Install

pip install -U lightdash-ops

Settings

We can configure the API endpoint and so on with environment variables. We can also take advantage of an .env file. The template is located at .env.template.

# .env
LIGHTDASH_BASE_URL=https://localhost:8000
...

How to use

The CLI requires a personal access token to call the Lightdash APIs. The official documentation describes how to get personal access tokens.

The CLI provides many sub commands. Please refer to the detailed documentation in docs/cli.ms.

Example

The subsequent command is used to get all members in an organization.

$ lightdash-ops organization get-members --api-key "${LIGHTDASH_PERSONAL_ACCESS_TOKEN}"
[
  {
    "member_uuid": "ade0aef5-bca8-4cbe-819b-07803390ffb0",
    "email": "lightdash-member@example.com",
    "role": "member"
  },
  {
    "member_uuid": "d7ee948b-26d6-461a-b289-906cc7bb0c73",
    "email": "lightdash-admin@example.com",
    "role": "admin"
  }
]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lightdash_ops-0.1.1.tar.gz (29.1 kB view details)

Uploaded Source

Built Distribution

lightdash_ops-0.1.1-py3-none-any.whl (46.4 kB view details)

Uploaded Python 3

File details

Details for the file lightdash_ops-0.1.1.tar.gz.

File metadata

  • Download URL: lightdash_ops-0.1.1.tar.gz
  • Upload date:
  • Size: 29.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.31.0

File hashes

Hashes for lightdash_ops-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aed36809bb6a0d87fd84b17935c94c90e88776059f01f5adf3ee17f00628212b
MD5 6237f52ebafd8fe86323115a9884b76c
BLAKE2b-256 8868f4e0dcb1eabb0a149daf3689e9512b89d1dc1ad0a7814cadd33ae663803d

See more details on using hashes here.

Provenance

File details

Details for the file lightdash_ops-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lightdash_ops-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f07c988caf1e47d60f6a435293519fe6871fc3cfb1f32d4cbfd9d10b71abd1
MD5 5df14d7f8c8bcd1bc185371c8ed25400
BLAKE2b-256 4f27b2fc7dccc9cc926098a4d14dcde1058ac8e075f7dc889caa7dccae235af0

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page