Skip to main content

jubilant_adapters

PyPI version Ruff Checked with pyright

Jubilant Adapters is a back-to-basics effort to facilitate migration of charm repositories using pytest-operator as their integration testing library, to the newer and better jubilant library. By back-to-basics, I mean pure Gang of Four design patterns, instead of blindly throwing in developers, LLMs and/or agents and burning token, CI and developer budget for something that could be achieved much simpler, with a software engineering mindset.

The way it works is to add jubilant_adpaters as a test dependency, use the JujuFixture provided by that lib as the pivot fixture instead of OpsTest, and simply replace all ops_test calls with juju.ext. I have also included a utility script which does that for you, but it is opinionated and may not work optimally in your particular case. But the general flow remains the same regardless of whether or not you use the utility script.

More on JujuFixture

JujuFixture inherits from jubilant.Juju, and adds an extension layer via the ext property, which provides familiar libjuju-style API on the surface, but uses jubilant on the backend.

So instead of calling ops_test.model.deploy(...), you can call juju.ext.model.deploy(...), and so on.

The adapters may not cover 100% of the libjuju API, and I followed the Pareto rule, coupled with my own experience and judgement to provide adpaters for the most widely used APIs. But feel free to contribute and extend the adapters if you feel something is missing, and I would highly appreciate that!

Metadata

Release files for jubilant-adapters 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jubilant-adapters 0.2.1
File Size Uploaded Provenance Actions
jubilant_adapters-0.2.1.tar.gz 19.7 kB With provenance Details for jubilant_adapters-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jubilant-adapters 0.2.1
File Interpreter ABI Platform Actions
jubilant_adapters-0.2.1-py3-none-any.whl Python 3 none any Details for jubilant_adapters-0.2.1-py3-none-any.whl

Total release size: 39.3 kB

Release files / jubilant_adapters-0.2.1.tar.gz

Download URL jubilant_adapters-0.2.1.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5761494ad4253b9a26eccc7b4a18f1664678ec0c62bdf6e950c774096ae3cb53
BLAKE2b-256 checksum
How to use checksums
7f1e32387b6769ec62fd80beb7946a13270b8ee78e2f7cf9651c604605019928
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Release files / jubilant_adapters-0.2.1-py3-none-any.whl

Download URL jubilant_adapters-0.2.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62726f9b3dd0e0a1f9dd7b5b697cc252f34e5b913a5a572ea560fa2ce16943cf
BLAKE2b-256 checksum
How to use checksums
280a595aab2ba887b77f89471c3547c5f93af056fc63e7ec0f68a35967497574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

Security for jubilant-adapters 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for jubilant_adapters-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page