Skip to main content

Lookup LaunchDarkly feature flags by key and return their values.

Project description

Usage

In your shell:

export LAUNCHDARKLY_SERVER_KEY="some-random-key"
export LAUNCHDARKLY_FLAGS="foo"

This script provides several command-line options:

  • -f or --flag: This option is used to specify the flag key to evaluate. This option is required and can be used multiple times. The value for this option can also be provided through the LAUNCHDARKLY_FLAGS environment variable.

  • --sdk-key: This option is used to specify the LaunchDarkly SDK server key. The value for this option can also be provided through the LAUNCHDARKLY_SERVER_KEY environment variable.

  • -v or --verbose: This option is used to increase logging verbosity. The more times this option is used, the more verbose the logging.

:warning: You can specify either environment variables or command-line options.

For example, to run the script with a flag key of "foo" and an SDK key of "sdk-34324dfd-fake-ke5", you would use the following command:

ld-flag-lookup -f "foo" --sdk-key "sdk-34324dfd-fake-key" -vv

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

ld_flag_lookup-1.0.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ld_flag_lookup-1.0.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file ld_flag_lookup-1.0.0.tar.gz.

File metadata

  • Download URL: ld_flag_lookup-1.0.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.8 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for ld_flag_lookup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 31b88db631fb3b520fd9642fb74b6a8c64afeeff61bc264ed3b05ab261564917
MD5 d09fd4804a172a7874467e11d7483003
BLAKE2b-256 7e211417de510fd347a94cbb4f9d8d4d7304a15494648eae8fa881430afdc76e

See more details on using hashes here.

File details

Details for the file ld_flag_lookup-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ld_flag_lookup-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.8 Linux/5.15.146.1-microsoft-standard-WSL2

File hashes

Hashes for ld_flag_lookup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01b6dd37dc204d38084a8feede30493c0702088c34357209525cc9c6febfee5c
MD5 4a4f1e76770f689795cc34684880cb09
BLAKE2b-256 06162786c63b0bf40c9b40df7137244b72fbc6112fef354bebecd323e883035e

See more details on using hashes here.

Supported by

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