Skip to main content

ovos-core configuration module

Project description

License Unit Tests codecov PRs Welcome Chat GitHub Discussions

OVOS-config

helper package to interact with mycroft config

Command Line usage

A small helper tool is included to quickly show, get or set config values

ovos-config

Quick rundown (cli):

  • ovos-config get

    • Loose search (search a key or parts therof):

      Given an entry of

      {'PHAL': {
              'ovos-PHAL-plugin-system': {
                      'enabled': True
              },
              'ovos-PHAL-plugin-connectivity-events': {
                      'enabled': True
              },
              ... 
      }
      

      ovos-config get -k phal would yield all PHAL entries and present it to the user (and the path where they were found)

    • Strict search (search keys in a distinct location):

      ovos-config get -k /PHAL/ovos-PHAL-plugin-system/enabled

      This will output only the value or exit out if no key is found (root slash indicating a strict search)

  • ovos-config set

    • Searches loosely for keys containing the query string and presents a choice to the user to define a value

      ovos-config set -k phal

      ovos-config2

      The type is derived from the joined config and thus can be safely cast into the user conf.
      Optionally a value (-v) can be sent as an argument.

  • ovos-config autoconfigure

image

image

  • ovos-config show

    • Get a full table of either the joined, user (-u), system (-s) or remote (-r) configuration. This can be further refined by passing a --section, which can be listed with ovos-config show -l

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

ovos-config-2.1.1.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

ovos_config-2.1.1-py3-none-any.whl (71.8 kB view details)

Uploaded Python 3

File details

Details for the file ovos-config-2.1.1.tar.gz.

File metadata

  • Download URL: ovos-config-2.1.1.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for ovos-config-2.1.1.tar.gz
Algorithm Hash digest
SHA256 dc6b1b33f6a8f1010b1bfff8dbfb8c5fbce3cd22f43ace5d93826213e5509d7f
MD5 ae921abafc6e0eaabf3e5bb55b3b9aba
BLAKE2b-256 473ab8e44e4c3edf5b0b27af56e6f7a9e2adfe4350fcbdb3e5119dc22807a98b

See more details on using hashes here.

File details

Details for the file ovos_config-2.1.1-py3-none-any.whl.

File metadata

  • Download URL: ovos_config-2.1.1-py3-none-any.whl
  • Upload date:
  • Size: 71.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for ovos_config-2.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad32ee54320dbb35fddb10055210a48871b0d7cf7d8e4100e25dbb1425d5e026
MD5 108ec97a1a59cf17b9c7b8a1ad2a0e79
BLAKE2b-256 5702e2e159475272d9fab4846b8c38adecf00c69730fc598ec2cf55ff3e530ea

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