No project description provided
Project description
equilibrium
Equilibrium (noun): A state in which opposing forces or influences are balanced, resulting in a stable system that does not undergo significant changes. In a broader sense, equilibrium can refer to a state of mental or emotional balance, as well as the balance of forces in physical or chemical systems.
Equilibrium is a Python framework inspired by various other open-source tools for implementing control loops (Kubernetes) and rules-engines (Pants build system).
Overview: Resource management & control loops
Equilibrium is a framework for implementing control loops. A control loop is a system that continuously monitors the state of a system and takes action to bring the system into a desired state. Equilibrium is designed to be extensible and flexible, allowing you to implement control loops that are tailored to your specific use case.
Check out the examples/local_file/ directory for a simple example of a control loop that monitors a local file and takes action when the file is modified.
Overview: Rules engine
Equilibrium is also a framework for implementing rules engines. A rules engine is a system derives a sequence of rules to execute to reach a desired and goal based on a given set of inputs, ensuring that rules are never exexcuted multiple times with the same inputs.
Check out the examples/codegen/ directory for a simple example of a rules engine that generates Terraform code based on a set of Kubernetes-like resources. This example combines the resource management API with the rules engine API.
Installation
Equilibrium is available on PyPI:
pip install python-equilibrium
It requires at least Python 3.10.
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
Built Distribution
Hashes for python_equilibrium-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6490be83b5fab4ec97fbd4771864a3484e37cacd97c794ed0e80fbbc4e62aa3f |
|
MD5 | 588bb94f0761687d229bd13241d00432 |
|
BLAKE2b-256 | 717864e55bd7da67863c55cc2979fc9974ed6e47988a37112840433fd9a43cf6 |