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.6.tar.gz (31.5 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.6-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: whl_conf-0.0.6.tar.gz
  • Upload date:
  • Size: 31.5 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.6.tar.gz
Algorithm Hash digest
SHA256 1a305bc17727cfc4e13d45ebfe4a375f7436c9479f6cc3568695b090ad2f683f
MD5 7ab41444b12e66d182465691e26be043
BLAKE2b-256 2314a233a857fc8bb0258b6509206f3677218880331cca2b3e02bd87b3741a39

See more details on using hashes here.

File details

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

File metadata

  • Download URL: whl_conf-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 32.9 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 42ca233303318556ac25d7772fc4feb9a9576422f4c65eca09a5d1a1213d43fc
MD5 a3884a6b905366ad41dc2a808925fb5c
BLAKE2b-256 8c5f5cf4c9cffbad97c86e97a26ffd39f99a26abcb52f4741ada9a3b9b82c9e6

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