Skip to main content

Charm library for unified reconciliation

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

charms_reconciler-0.0.1.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

charms_reconciler-0.0.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file charms_reconciler-0.0.1.tar.gz.

File metadata

  • Download URL: charms_reconciler-0.0.1.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for charms_reconciler-0.0.1.tar.gz
Algorithm Hash digest
SHA256 ab5f95b1d91e289275c18d77027c8ebdbdb19e7c30cc40e18db7ccbff2f9529c
MD5 e8ab7ef7bae99b5c03640acef540ff85
BLAKE2b-256 627dbff2abdf22225f6289cba0d2f0ef20c965fa2f7f74a65028a585d791fb45

See more details on using hashes here.

File details

Details for the file charms_reconciler-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for charms_reconciler-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26692c77b9e6b699f954e3a2d961ddae4af37bb245aeb7629b00441cbbb4e17a
MD5 a341b10d15f3d955482476147f4f1fe1
BLAKE2b-256 82696cd61bb1f95a067575dc726e0c52e6119e1126fb5c6d319b6ed46fc5b151

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page