jubilant
Juju CLI wrapper, primarily for charm integration testing
What it is and what it does
Jubilant is a Python wrapper around the Juju CLI designed to simplify charm integration testing. It maps Juju CLI commands to type-annotated Python methods, eliminating the need for async/await patterns and avoiding websocket failures that plague lower-level alternatives. The library is built for developers writing pytest-based charm tests who want a straightforward, Pythonic interface to deploy charms, wait for readiness, and verify behavior.
The package depends only on PyYAML and requires the Juju CLI to be installed separately on the system. It supports current Python versions (3.10+) and is actively maintained by Canonical. The project committed to API stability after version 1.0.0, making it a stable choice for long-lived test suites.
Use it for:
- Write pytest fixtures that deploy charms to temporary Juju models and clean them up automatically after tests.
- Wait for charm deployments to reach active state with built-in predicates like all_active before running assertions.
- Automate charm integration testing without managing websocket connections or async/await boilerplate.
- Replace pytest-operator in existing test suites with a simpler, more maintainable API.
- Deploy and verify multiple charms in a single test, checking their interactions and HTTP endpoints.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Jubilant wraps the Juju CLI with a type-annotated Python interface, primarily for writing charm integration tests without websocket failures or async complexity.
Yes. Jubilant is actively maintained, has low install friction, carries no security vulnerabilities, and offers a stable API (committed post-1.0.0). It directly solves the pain point of charm integration testing with a cleaner alternative to both pytest-operator and python-libjuju. Install it if you write Juju charm tests or automate Juju deployments in Python.
Install
jubilant on PyPI
pip
pip install jubilantuv
uv add jubilantpoetry
poetry add jubilantInstalling jubilant
Before you install
Low install friction with a single runtime dependency (PyYAML). Active maintenance: last commit 2026-08-12, version 1.12.0 released 2026-07-30, and the project explicitly committed to API stability after 1.0.0 in April 2025.
License in practice
Licensed under Apache Software License (permissive), which allows commercial use, modification, and distribution with minimal restrictions—suitable for both open-source and proprietary projects.
Quickstart
pip install jubilant
import jubilant
juju = jubilant.Juju()
juju.deploy('snappass-test')
juju.wait(jubilant.all_active)
Requires Juju CLI to be installed separately on the system; Python 3.10 or later.
Verify before relying
- Whether Jubilant's API coverage matches all common Juju CLI commands used in production charm tests.
- Performance characteristics when managing large deployments or many concurrent charm operations.
- Compatibility with Juju versions beyond the current stable release.
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — PyYAML |
| Maintenance | actively maintained — 15 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 177,021/month — #10,226 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: jubilant-1.12.0-py3-none-any.whl
Tags
More Testing packages
Pluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
virtualenvvirtualenv creates isolated Python environments…
permissive · top 100 on PyPI
coverageCoverage.py measures which lines of Python code…
permissive · top 1,000 on PyPI
pytest-asynciopytest-asyncio is a pytest plugin that enables…
permissive · top 1,000 on PyPI
pytest-json-ctrfA pytest plugin that generates test reports in…
permissive · top 1,000 on PyPI
jujuA Python library providing asynchronous…
permissive · top 15,000 on PyPI
opsA Python framework for developing…
permissive · top 15,000 on PyPI
pytest-operatorA pytest plugin that provides fixtures and…
permissive · top 15,000 on PyPI
ops-scenarioops-scenario is a state-transition testing…
permissive · top 15,000 on PyPI
charmlibs-pathopsProvides a pathlib-like interface for reading…
permissive · top 15,000 on PyPI
coslProvides utilities for COS Lite charms,…
permissive · top 15,000 on PyPI
charmcraftlocalPacks Juju charms with local Python package…
unclear · top 15,000 on PyPI
pytest-prettyA pytest plugin that formats test output with…
permissive · top 5,000 on PyPI
pytest-playwrightA pytest plugin that integrates Playwright…
permissive · top 5,000 on PyPI
uiautomator2Automates Android device interactions from…
permissive · top 15,000 on PyPI