Skip to main content

charm-lib-reconciler

Charm library for unified reconciliation.

This library aims to make it easier to write charms with a single "reconcile" handler that handles all Juju events.

from charms.reconciler import Reconciler

class SomeCharm(ops.CharmBase):
    def __init__(self, *args):
        super().__init__(*args)
        self.reconciler = Reconciler(self, self.reconcile)

    def reconcile(self, event):
        # ...

In the above example, the reconcile method will end up being called for any HookEvent such as install, config_changed, *_relation_changed, and so on. Within the reconcile method, the charm can check and set relation data, configure local services, and so on.

Metadata

Release files for charms.reconciler 0.0.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 charms.reconciler 0.0.1
File Size Uploaded
charms_reconciler-0.0.1.tar.gz 66.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for charms.reconciler 0.0.1
File Interpreter ABI Platform
charms_reconciler-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 74.5 kB

Release files / charms_reconciler-0.0.1.tar.gz

Download URL charms_reconciler-0.0.1.tar.gz
Size 66.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ab5f95b1d91e289275c18d77027c8ebdbdb19e7c30cc40e18db7ccbff2f9529c
BLAKE2b-256 checksum
How to use checksums
627dbff2abdf22225f6289cba0d2f0ef20c965fa2f7f74a65028a585d791fb45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / charms_reconciler-0.0.1-py3-none-any.whl

Download URL charms_reconciler-0.0.1-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26692c77b9e6b699f954e3a2d961ddae4af37bb245aeb7629b00441cbbb4e17a
BLAKE2b-256 checksum
How to use checksums
82696cd61bb1f95a067575dc726e0c52e6119e1126fb5c6d319b6ed46fc5b151
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

0.0.0

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