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 theLAUNCHDARKLY_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 theLAUNCHDARKLY_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ld_flag_lookup-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6bd44907ffc6bced4e032ce1f1e0b888033fea6954a465cbbc125d0b937223ba |
|
MD5 | 50ca85a3ac6e4b6ddc7d4793108d8eef |
|
BLAKE2b-256 | d3d0f1b48b913c3d9bc211df2576f1d8321ae050cc50a4d78914fb4cf98d4ed5 |