Skip to main content

A configuration management tool for WheelOS.

Project description

whl-conf

whl-conf is a command-line tool for managing configuration sets (configs), particularly suited for autonomous driving applications. It provides a robust, manifest-driven workflow for activating, versioning, and modifying configurations safely.

Global Options

  • --conf-dir <path>: Specifies the root directory of the configuration repository. All operations, such as creating configs and managing links, are performed relative to this directory. The default is /apollo.

Command Descriptions

  • list: Displays all available configuration sets.

  • info <config_name>: Shows detailed information about the specified configuration set.

  • create <new_config_name>: Creates a new configuration set based on the specified template.

  • delete <config_name>: Deletes the specified configuration set.

  • activate <config_name> [--dry-run]: Activates the specified configuration set, creating symlinks for all managed files. Use --dry-run to preview the activation without making changes.

  • add <path(s)> [--dry-run]: Adds one or more files/directories to the active configuration. This copies the source files into the active config's directory (creating a snapshot) and then creates symlinks pointing to these new copies. This operation is transactional and forcefully overwrites any existing files at the destination. Use --dry-run to preview the actions.

  • remove <path(s)> [--dry-run]: Removes one or more files/directories from the active configuration. This is the mirror operation to add. It deletes both the system symlinks and the corresponding file snapshots from within the active config's directory. Use --dry-run to preview the actions.

  • diff <config1_name> <config2_name>: Compares the contents of two configuration sets and shows the differences.

  • rename <old_name> <new_name>: Renames the specified configuration set.

  • pull [--name <name>]: Pulls a configuration set from a remote source and saves it locally. Optionally, specify a local name using --name.


Quick Start

Install the tool

pip install whl-conf

Commands

  1. List all configuration sets

    whl-conf list
    
  2. Show details of a specific config

    whl-conf info <config_name>
    
  3. Create a new config set from a template

    whl-conf create <template_name> <new_config_name>
    
  4. Delete a specified config

    whl-conf delete <config_name>
    
  5. Activate a specified config set

    whl-conf activate <config_name>
    
  6. Add a new model file to the active config

    whl-conf add modules/perception/models/new_model.pb
    
  7. Add multiple files and directories to the active config

    whl-conf add modules/control/conf/new_params.pb.txt data/calibration/new_camera/
    
  8. Remove a file from the active config

    whl-conf remove modules/perception/models/new_model.pb
    
  9. Compare two config sets

    whl-conf diff <config1_name> <config2_name>
    
  10. Rename a config set

    whl-conf rename <old_name> <new_name>
    
  11. Pull a config set from a remote source

    whl-conf pull [--name <name>]
    

For more detailed information and additional options, you can run:

whl-conf --help
whl-conf <command> --help

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

whl_conf-0.0.3.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

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

whl_conf-0.0.3-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file whl_conf-0.0.3.tar.gz.

File metadata

  • Download URL: whl_conf-0.0.3.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for whl_conf-0.0.3.tar.gz
Algorithm Hash digest
SHA256 58561d28f074a41e9e63126da6a2bd12527412aa4acdc92dbbbcef9c1adde122
MD5 85ed4ba30f9e73c3621240b4ca1c825f
BLAKE2b-256 a148a77ac8dc9ee11e5e692356b73ca3c26fc84d8941af3b781c7001ae61e74f

See more details on using hashes here.

File details

Details for the file whl_conf-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: whl_conf-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for whl_conf-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e5c9615e246ced4ccd22ecd2ccd59cbaf8c449587bf8a2b73fc8012f79d7bef
MD5 79dbf81e15f27f5a985af547062bbd36
BLAKE2b-256 7d2ff6b780409496aa33433be7ade5ee3fbe2f079396e3b29a9cfbb150af0f7d

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