py-flagsmith-cli
flagsmith-cli Python Implementation.
Homepage: https://github.com/belingud/py-flagsmith-cli
You can install with pip:
pip install py-flagsmith-cli
Recommand use pipx:
pipx install py-flagsmith-cli
And use in cmd:
pysmith -h
Usage: pysmith [OPTIONS] COMMAND [ARGS]...
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --install-completion Install completion for the current shell. │
│ --show-completion Show completion for the current shell, to copy it or customize the │
│ installation. │
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────────────╮
│ get Retrieve flagsmith features from the Flagsmith API and output them to file. │
│ showenv Show the current flagsmith environment setup. Including environment id and api host. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Include two commands get and showenv.
pysmith get
pysmith get --help
Usage: pysmith get [OPTIONS] ENVIRONMENT
Retrieve flagsmith features from the Flagsmith API and output them to file.
EXAMPLES
$ pysmith get <ENVIRONMENT_API_KEY>
$ FLAGSMITH_ENVIRONMENT=x pysmith get
$ pysmith get <environment>
$ pysmith get -o ./my-file.json
$ pysmith get -a https://flagsmith.example.com/api/v1/
$ pysmith get -i flagsmith_identity
$ pysmith get -t key1=value1 -t key2=value2
$ pysmith get -np
╭─ Arguments ───────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * environment TEXT The flagsmith environment key to use, defaults to the environment variable │
│ FLAGSMITH_ENVIRONMENT │
│ [env var: FLAGSMITH_ENVIRONMENT] │
│ [default: None] │
│ [required] │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --output -o TEXT The file path output [default: None] │
│ --api -a TEXT The API URL to fetch the feature flags from │
│ [default: https://edge.api.flagsmith.com/api/v1/] │
│ --identity -i TEXT The identity for which to fetch feature flags [default: None] │
│ --no-pretty -np Do not prettify the output JSON │
│ --entity -e TEXT The entity to fetch, this will either be the flags or an environment document used │
│ for Local Evaluation Mode. Refer to https://docs.flagsmith.com/clients/server-side. │
│ [default: flags] │
│ --trait -t TEXT Trait key-value pairs, separated by an equals sign (=). Can be specified multiple │
│ times. │
│ [default: None] │
│ --help -h Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
pysmith showenv
pysmith showenv -h
Usage: pysmith showenv [OPTIONS]
Show the current flagsmith environment setup. Including environment id and api host.
EXAMPLES:
$ pysmith showenv
Current flagsmith env setup>>>
flagsmith environment ID: <environment-id>
flagsmith host: <api-host>
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --help -h Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Note: There is some differences with flagsmith-cli:
pysmithwill not save into json file if you don't specify-opysmithwill pretty json output as default, use-npto disable it.flagsmith-clidoes the opposite
Refer to:
License
Metadata
Release files for py-flagsmith-cli 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| py_flagsmith_cli-1.1.0.tar.gz | 7.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py_flagsmith_cli-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / py_flagsmith_cli-1.1.0.tar.gz
| Download URL | py_flagsmith_cli-1.1.0.tar.gz |
|---|---|
| Size | 7.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
813d14e22004917b825a44ce5a94777bb66f58e6b6865c68cfb3667881907802
|
|
BLAKE2b-256 checksum How to use checksums |
339c424e265f22a6bcd4ededcb02d50cc9b08966b9be067310f3cad03e9e7e61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.20
|
Release files / py_flagsmith_cli-1.1.0-py3-none-any.whl
| Download URL | py_flagsmith_cli-1.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06e55a9c12f73b3adc2fd9b7c85c038fc118861ca47072099cf0ff4ab0448561
|
|
BLAKE2b-256 checksum How to use checksums |
72befe7e743a258674375934d370f9c143efffc756a6c5f578a182a6d043d128
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.7.20
|