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.0.tar.gz (42.3 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.0-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for charms_reconciler-0.0.0.tar.gz
Algorithm Hash digest
SHA256 f644d00e204fbcd37e63659bf3100fae84bc74439478985ac2e1af2427aa84f6
MD5 eeab395426ec84640f45a945c5e7c90c
BLAKE2b-256 c0532ddeeae5fb18d24082f08666a6402243633e55f9af7dc80b1850a817e589

See more details on using hashes here.

File details

Details for the file charms.reconciler-0.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for charms.reconciler-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 324f4cfe06de66d921f3ae77798f1ea41c71deb6dcf54bad995721793d3c8842
MD5 e61885dbc37e22e70ba6cfd6516798bb
BLAKE2b-256 44d3323f78d95e3a73d3ffe8cecf9a908f84266387ec2629d71759577d48c93a

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