Charmlibs

This is the Charm Tech team at Canonical’s documentation website for charm libraries. It hosts the documentation for the team’s charm libraries that are distributed as Python packages, as well as general documentation about charm libraries.

You can also read our guidance on distributing charm libraries as Python packages.

If you’re new to charms, see Juju | Charm.

Pathops

Pathops is a Python package that provides a pathlib-like interface for both local filesystem and Kubernetes workload container paths. Charms can use ContainerPath to interact with files in the workload container, or LocalPath to interact with local files using the same API. Code designed to work for both cases can use PathProtocol in type annotations.

Pathops is available on PyPI with examples of how to get started. You can also read the full reference documentation.