ansible-dev-environment
A pip-like ansible collection installer.
What it is and what it does
ansible-dev-environment (ade) is a workspace isolation tool for Ansible collection development. It creates project-specific virtual environments and manages both Ansible collections and their Python dependencies, solving the problem of version conflicts when developing multiple collections with different requirements. The tool installs collections into the virtual environment's site-packages, making them discoverable by Ansible, Python tooling, and pytest while keeping them isolated from global collection directories.
The core problem it addresses is Ansible's collection search path behavior: Ansible prioritizes global collection locations (like ~/.ansible/collections) over virtual environment paths, causing silent version conflicts where your development code is overridden by older global versions. ade provides three isolation modes—cfg (default, creates ansible.cfg), restrictive (fails if global collections exist), and none—to ensure your virtual environment's collections take precedence. It complements ansible-galaxy by handling Python package dependencies that collections require, creating reproducible development setups across team members.
Use it for:
- Develop a collection with specific Python package versions (e.g., requests==2.25.0) without affecting other projects on the same machine
- Set up a reproducible development environment for a team where each developer uses the same collection and dependency versions
- Test a collection against multiple Python versions (3.10, 3.11, 3.12, 3.13) by creating separate virtual environments with --python
- Install a collection in editable mode with symlinks for active development, allowing code changes to be immediately reflected
- Prevent debugging confusion caused by Ansible loading older collection versions from global paths instead of your development code
- Manage complex dependency trees where collections have conflicting requirements that would fail in a shared environment
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Creates isolated virtual environments for Ansible collection development, managing collection installation, Python dependencies, and workspace isolation to prevent version conflicts.
Yes. The package is actively maintained (released 2 days ago), production-stable, has no known vulnerabilities, and solves a real problem in Ansible collection development—preventing version conflicts through workspace isolation. Low installation friction and broad Python version support (3.10–3.13) make it accessible. The copyleft license is a consideration only if you plan to redistribute modifications; for development use, it poses no barrier.
Install
ansible-dev-environment on PyPI
pip
pip install ansible-dev-environmentuv
uv add ansible-dev-environmentpoetry
poetry add ansible-dev-environmentInstalling ansible-dev-environment
Before you install
Low friction installation with a pure Python wheel. Active maintenance—released 2 days ago with 72 repository stars. Requires Python 3.10 or later and depends on ansible-builder, bindep, pyyaml, and subprocess-tee, all standard tools in the Ansible ecosystem.
License in practice
Licensed under GPL-3.0-only (copyleft). Any modifications or derivative works must be distributed under the same license; proprietary use is not permitted.
Quickstart
pip install ansible-dev-environment
cd /path/to/collection
ade install -e . --venv .venv
# Activate and use
source .venv/bin/activate
ansible-playbook playbooks/test.yml
Requires Python 3.10 or later; ansible-builder, bindep, pyyaml, and subprocess-tee must be installable in the target environment.
Verify before relying
- Whether the tool works with all Ansible core versions or has specific version constraints beyond what the description states
- Performance characteristics when managing large numbers of collections or complex dependency trees
- Compatibility with non-CPython implementations (PyPy, etc.) despite Python 3.10+ support
Package facts
| License | GPL-3.0-only (copyleft) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — ansible-builder, bindep, pyyaml, subprocess-tee |
| Maintenance | actively maintained — 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 582,103/month — #5,903 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ansible_dev_environment-26.8.0-py3-none-any.whl
Keywords: ansible
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
ansible-dev-toolsBundles and installs a curated suite of Ansible…
copyleft · top 15,000 on PyPI
isolateIsolate manages isolated Python environments…
unclear · top 15,000 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
ansibleAnsible is an IT automation system that handles…
copyleft · top 5,000 on PyPI
riotriot constructs isolated Python virtual…
permissive · top 15,000 on PyPI
ansible-builderAnsible Builder automates the creation of…
permissive · top 15,000 on PyPI
ansible-coreAnsible Core is the engine for agentless IT…
copyleft · top 5,000 on PyPI
selinuxProvides a pure-Python shim for the selinux…
permissive · top 5,000 on PyPI
pipxpipx installs and runs Python command-line…
permissive · top 5,000 on PyPI
environManages stack-based global variables that can…
copyleft · top 15,000 on PyPI