{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/6"}],"enrichment":{"capability":"Provides a pathlib-like interface for reading and writing files in local filesystems and Juju workload container paths, supporting both Kubernetes and machine charms.","skillfed_tags":["juju-charms","container-filesystem"],"use_cases":["Copy configuration files from a charm container to a workload container with permission and ownership control.","Write charm-generated configuration to a workload container and detect whether the workload needs to reload.","Implement charm logic that works identically on both machine and Kubernetes charms by accepting a PathProtocol argument.","Ensure a file exists with specific content and ownership in a workload container, idempotently."],"what_it_does":"charmlibs-pathops is a filesystem abstraction library for Juju Charms that unifies file operations across local charm containers and remote workload containers. It wraps the ops framework and provides LocalPath and ContainerPath classes that implement a common PathProtocol interface\u2014a subset of pathlib.Path\u2014allowing charm code to work with either filesystem using identical method calls.\n\nThe library is designed for Kubernetes charms that need to read from or write to files in both the charm container and the workload container. It handles path operations like mkdir, read_bytes, write_text, and a helper ensure_contents function that idempotently sets file contents and reports whether changes were made. It does not support relative paths, the open method, or symlink/hardlink manipulation; mkdir, write_bytes, and write_text accept mode, user, and group parameters to set permissions and ownership directly.","worth_installing":"Yes\u2014if you are writing Juju Charms that need to interact with container filesystems. The library eliminates boilerplate for path handling and unifies the API across charm types. No known vulnerabilities, permissive license, low install friction, and active maintenance. Not relevant for non-charm Python projects."},"id":"charmlibs-pathops","links":{"html":"https://skillfed.io/packages/charmlibs-pathops","md":"https://skillfed.io/packages/charmlibs-pathops.md","pypi":"https://pypi.org/project/charmlibs-pathops/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-16","license_spdx":"Apache-2.0","license_treatment":"permissive","name":"charmlibs-pathops","python_support":"supports_current","summary":"A pathlib-like interface for Juju K8s charms to interact with files in their workload container."},"popularity":{"monthly_downloads":80338,"position":14296,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.3.0.post0"}
