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.5.tar.gz (28.1 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.5-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whl_conf-0.0.5.tar.gz
  • Upload date:
  • Size: 28.1 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.5.tar.gz
Algorithm Hash digest
SHA256 7af47dc286880cbba5bfdee412e73caeb8012e93735d1ca7e240ec747aad0cde
MD5 b32cc99f43010655c53529e02e6d9c4a
BLAKE2b-256 d1a3e9ab2e20bbd588d9a35c94d6fe96fae3f7e8cc65131526ac1d65e521c2ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whl_conf-0.0.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 aae8c9f59fd3ee70790ee22c15b4712ac57a5a45549d29376b1cb5b3e02f4d30
MD5 b7332e44515086fa2eedcb8eeb01013b
BLAKE2b-256 eaf0bf4377ee23f410db46960b18835dac20c266aca2add181ff377ea4523745

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