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 charms, see Juju | Charm.
Pathops¶
Pathops is a Python library providing a pathlib-like interface for Kubernetes charms to interact with files in their workload container. 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. Read the Pathops reference documentation.