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 framework for implementing control loops and is heavily Kubernets-inspired. 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. It is designed to be extensible and flexible, allowing you to implement control loops that are tailored to your specific use case.
Installation
Equilibrium is available on PyPI. You need at least Python 3.10.
pip install python-equilibrium
Example
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.
graph LR
subgraph Equilibrium
LocalFile["Resource[LocalFile]"] --> LocalFileController
end
subgraph "Local filesystem"
LocalFileController --> LocalFileModification["Local filesystem changes"]
end
subgraph "State Backend"
LocalFileController --> State["Last known state"]
end
Difference to Kubernetes resources
- Equilibrium does not currently support any key other than
spec
next toapiVersion
,kind
, andmetadata
in a resource definition. This means Equilibrium cannot be used to deserialize actual KubernetesSecret
ofConfig
resources.
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
File details
Details for the file python_equilibrium-0.7.2.tar.gz
.
File metadata
- Download URL: python_equilibrium-0.7.2.tar.gz
- Upload date:
- Size: 21.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34602354b84b7321117ef5617177b9a459d0e30391044b60077dc4b94f04bbaa |
|
MD5 | f944b8583da863e372abfcd8d5ba4d3f |
|
BLAKE2b-256 | 5af5a066e40bd8dd031ffd9b2931c4336ab5f6e434e8bcc378855694b3479a0e |
File details
Details for the file python_equilibrium-0.7.2-py3-none-any.whl
.
File metadata
- Download URL: python_equilibrium-0.7.2-py3-none-any.whl
- Upload date:
- Size: 28.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.3 readme-renderer/37.3 requests/2.28.1 requests-toolbelt/0.10.1 urllib3/1.26.12 tqdm/4.64.1 importlib-metadata/5.0.0 keyring/23.11.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 749aca39216ed621ef588015ea341a1a5a560137ba4c1b030bdda4bfe9fb3310 |
|
MD5 | 245dae7e86cd22c4dfcb05dc82a1010f |
|
BLAKE2b-256 | 5cbfedcbbe5b81649cd26bdcbf104b6ce953766a72cf8ca6e4a527ce60b7e9fb |