Skip to main content

canonical_service_mesh

A shared utility library for the Charmed Service Mesh ecosystem.

Purpose

The Charmed Service Mesh ecosystem will contain charms that integrate service mesh technologies into the Juju ecosystem. These charms and their interface libraries share a significant amount of common code: Pydantic models for Kubernetes resource creation and service mesh CRD resources, lightkube-based resource management, label generation and authorization policies etc.

This package is the single home for all of that shared utility code. By centralizing it here, every charm and interface library depends on one well-maintained package instead of copying code between repositories or pulling from multiple helper packages.

Ecosystem

The ecosystem has three layers:

  1. This package (canonical_service_mesh) provides models, resource managers, and helpers. It has no knowledge of Juju relations or charm lifecycle, which keeps it testable and reusable.
  2. Interface libraries (via the charmlibs monorepo) define the relation databag schemas and the interface classes. They import from this package.
  3. Charms contain purely the charm specific logic and consume the interface and the canonical_service_mesh libraries.

Package structure

enums

Shared enumerations used across the ecosystem.

models

Pydantic models for Kubernetes and service mesh resources. The top-level models module contains generic Kubernetes Gateway API resource models. The models.istio subpackage contains Istio-specific CRD specs for authorization policies and request authentication.

utils

Helper functions for Kubernetes label generation, Juju identity resolution, and service mesh specific operations like label ConfigMap reconciliation and policy resource construction.

k8s

Kubernetes resource management built on lightkube. The k8s.resource_manager subpackage provides declarative resource lifecycle management with label-based ownership, policy resource management, and batch operations. The k8s.types subpackage defines lightkube type aliases and custom resource definitions.

Metadata

Release files for canonical-service-mesh 0.3.0

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

Source distribution (sdist)

Source distribution for canonical-service-mesh 0.3.0
File Size Uploaded
canonical_service_mesh-0.3.0.tar.gz 81.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for canonical-service-mesh 0.3.0
File Interpreter ABI Platform
canonical_service_mesh-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 124.4 kB

Release files / canonical_service_mesh-0.3.0.tar.gz

Download URL canonical_service_mesh-0.3.0.tar.gz
Size 81.0 kB
Tags Source
SHA-256 checksum
How to use checksums
d0f3dcd0b584f217b229f0805547b2db3843de4c2dce831a6192903612cd51ee
BLAKE2b-256 checksum
How to use checksums
f48ad1aa66c19b9e88ee8cd03f3636dc2913080a64499ab82089e737e2189b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 11, 2026.

Transparency log

Release files / canonical_service_mesh-0.3.0-py3-none-any.whl

Download URL canonical_service_mesh-0.3.0-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe6cd6bdd839db0917c3fd586568311c25a36bfa692be9c7d7c02a716a4a2672
BLAKE2b-256 checksum
How to use checksums
941ad4552b27882a13b29f02e1cb75ec07f24008e36bd0f03ee7f545c687fb73
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

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