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_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.

$ export LIGHTDASH_URL="https://localhost:8000"
$ export LIGHTDASH_API_KEY="YOUR-LIGHTDASH-PERSONAL-ACCESS-TOKEN"
$ lightdash-ops organization get-members
[
  {
    "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.3.0.tar.gz (35.4 kB view details)

Uploaded Source

Built Distribution

lightdash_ops-0.3.0-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lightdash_ops-0.3.0.tar.gz
Algorithm Hash digest
SHA256 31c60b0eb43ee15e231cd6fc8a145d1a157f1413270ec8fc7fe3032a4fec13ea
MD5 eee6f4e484e8186fa1629dd8ab929f68
BLAKE2b-256 62cff5f5aad62510ed0fcd05a0967149bebb188c6b734db86755ac02842c2595

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for lightdash_ops-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b00723527ad069f17ff741ddbdbc625e947ffd70c6ef7db150498c1879b8520e
MD5 89b3c20283ca2085a66c4b760e46950e
BLAKE2b-256 d1d0005b57beda5e6617a2fd4504135b2889c175240eeddc78a0cbe8ce79be0d

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