Helper for interface APIs written for the charm operator framework, which can register them with charms.reactive to function similarly to Endpoints.
Project description
ops-reactive-interface
This library is a helper for developers creating interface protocol API libraries for charms. The goal is to allow the developer to focus on implementing the API library using the best practices from the Operator framework pattern and still enable usage in older charms which have yet to be transitioned from the charms.reactive framework with minimal additional developer and resource overhead.
Usage
All that is required to use this library is to add a bit of info to your
interface protocol API library's setup.py
to include this as a dependency and
to register your API classes with the role and interface protocol name they
implement. Full details can be found in the docs, as well as an
example which shows an interface API implementation with
usage by both an Operator framework charm and a charms.reactive charm.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for ops_reactive_interface-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed351c42fc187299c23125975aa3dfee9f6aaae0c9d49bce8904ac079255dba |
|
MD5 | 7a3219d8a087d24ff2505adfda5c8d9a |
|
BLAKE2b-256 | 061f479df099c95eed03aee62a09299dee59e0d691cd0e3510f754435b545a9b |