colcon-defaults
Extension for colcon to read defaults from a config file.
What it is and what it does
colcon-defaults is a plugin for the colcon build system that reads default values for command-line arguments from a YAML configuration file. Instead of typing the same flags every time you run colcon build or other colcon commands, you define your defaults once in a configuration file and the plugin applies them automatically on each invocation.
The package depends on colcon-core (the plugin framework) and PyYAML (for parsing the configuration file). It targets developers working with colcon-based build systems who want to reduce repetitive typing and standardize build parameters across a team or project. The plugin integrates transparently into the colcon command pipeline.
Use it for:
- Set default build profiles, parallelism levels, or output directories once in a config file instead of repeating them on every colcon build invocation.
- Standardize build flags across a development team by committing a shared defaults.yaml to version control.
- Reduce command-line clutter in CI/CD pipelines by moving common arguments to a persistent configuration.
- Override default colcon behavior for specific workspaces without modifying shell aliases or wrapper scripts.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Extends colcon to load default command-line argument values from a YAML configuration file, reducing repetitive command typing in build workflows.
Yes, if you use colcon regularly and find yourself repeating the same command-line flags. The plugin is lightweight, actively maintained, and has no security vulnerabilities. Install it as part of your colcon ecosystem if you want to streamline repetitive build commands; skip it if you rarely use colcon or prefer explicit command lines.
Install
colcon-defaults on PyPI
pip
pip install colcon-defaultsuv
uv add colcon-defaultspoetry
poetry add colcon-defaultsInstalling colcon-defaults
Before you install
Low friction install with only two runtime dependencies (colcon-core and PyYAML). Active maintenance with a recent commit in May 2026, though the repository has minimal stars.
License in practice
Apache License 2.0 is permissive, allowing use in commercial and private projects with minimal restrictions.
Quickstart
pip install colcon-defaults
# Create ~/.colcon/defaults.yaml with your default arguments
# Then use colcon normally; defaults are applied automatically
colcon build
Requires colcon-core to be installed; this is a plugin extension, not a standalone tool.
Verify before relying
- Whether the defaults.yaml format and location are documented sufficiently for new users.
- Performance impact of loading defaults on each colcon invocation.
- Compatibility with all colcon subcommands or specific limitations.
Package facts
| License | Apache License, Version 2.0 (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — colcon-core, PyYAML |
| Maintenance | actively maintained — 604 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 183,027/month — #10,076 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: colcon_defaults-0.2.9-py3-none-any.whl
Keywords: colcon
Tags
More Build Tools packages
Provides reusable utilities for Python…
permissive · top 100 on PyPI
tqdmWraps any iterable to display a real-time…
copyleft · top 100 on PyPI
pippip is the standard installer for Python…
permissive · top 100 on PyPI
hatchlingHatchling is a standards-compliant Python build…
permissive · top 100 on PyPI
grpcio-toolsGenerates Python gRPC service stubs and message…
permissive · top 1,000 on PyPI
pre-commitpre-commit is a framework for installing and…
permissive · top 1,000 on PyPI
colcon-outputExtends colcon-core to customize output…
permissive · top 15,000 on PyPI
colcon-corecolcon-core is a command-line tool that…
permissive · top 15,000 on PyPI
colcon-devtoolsExtends colcon-core to expose information about…
permissive · top 15,000 on PyPI
colcon-pkg-configExtends colcon-core to configure environment…
permissive · top 15,000 on PyPI
colcon-powershellExtends colcon-core to generate PowerShell…
permissive · top 15,000 on PyPI
colcon-library-pathExtends colcon to configure environment…
permissive · top 15,000 on PyPI
colcon-cdProvides a shell function for colcon-core that…
permissive · top 15,000 on PyPI
colcon-package-informationExtends colcon-core to provide information…
permissive · top 15,000 on PyPI
colcon-test-resultExtends colcon-core to display and analyze test…
permissive · top 15,000 on PyPI
colcon-rosExtends colcon to recognize and build ROS…
permissive · top 15,000 on PyPI