Skip to main content

Tools for Zephyr Kconfig files

Project description

Zephyr KConfig

Various tools/helpers/cli to assist with Zephyr's KConfig

Run / Install

Run via uvx

# always fetches the latest version
uvx --from zepyhr-kconfig --help

Install as a tool (via uv)

# installs the current version
uv tool install zephyr-kconfig

Above also install zkc cli (also accessible via zephyr-kconfig if you have conflict with zkc)

# examples - (zkc is an alias to zephyr-kconfig)
zkc --help
zephyr-kconfig --help

Add to your project

uv add zephyr-kconfig --dev

and then run the cli via

uv run zkc --help

Features

Below examples are assuming you are running the tool globally

Note - uvx does sandboxing (virtualenv) for you so no need to worry

Get info on a KConfig item

# get the description as JSON output for CONFIG_LWM2M_SHELL
uvx zepyhr-kconfig --release 4.3.0 get CONFIG_LWM2M_SHELL

Example output

A partial CONFIG spec will get all items that start with the provided input for example CONFIG_LWM2M_ will output all L2M2M config items

Use --exact to get the info on CONFIG_LWM2M only

Use --metadata to get some extra fields (such as linenr, menupath etc)

Use --indent -1 to remove any indentation (default is 2)

Get deps on a KConfig item

# get the dependencies for CONFIG_LWM2M_SHELL
uvx zepyhr-kconfig --release 4.3.0 deps CONFIG_LWM2M_SHELL

For above example output would be:

CONFIG_LWM2M && CONFIG_NETWORKING

The input symbol should be exact

Pretty Print KConfig item(s)

# show the description of symbol(s)
uvx zepyhr-kconfig --release 4.3.0 pprint CONFIG_LWM2M_SHELL

Use --exact to print only one symbol

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

zephyr_kconfig-0.2.0.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

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

zephyr_kconfig-0.2.0-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file zephyr_kconfig-0.2.0.tar.gz.

File metadata

  • Download URL: zephyr_kconfig-0.2.0.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zephyr_kconfig-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e7304a47fc50636735621c28b575856adfd15fb7fc97a477ca582771e1b584e3
MD5 2612f7095f3b54ef38eb809edd6470ed
BLAKE2b-256 f4ca130e13f432cf6332135fbec66b247182a71f27f5eb98e4d60c1adb9d1408

See more details on using hashes here.

Provenance

The following attestation bundles were made for zephyr_kconfig-0.2.0.tar.gz:

Publisher: publish.yaml on ksachdeva/zephyr-kconfig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zephyr_kconfig-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: zephyr_kconfig-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zephyr_kconfig-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d98289bc766bba0f549f0934ac3b657c7e98fd0e5ba98e9dd2a5b05631a189f5
MD5 6a4491ac13d5d142407498f002ae4b7e
BLAKE2b-256 10ead293262a6a672b78fa9380352f011b75ef58ce5bf4dd9535a071579c32ac

See more details on using hashes here.

Provenance

The following attestation bundles were made for zephyr_kconfig-0.2.0-py3-none-any.whl:

Publisher: publish.yaml on ksachdeva/zephyr-kconfig

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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