sofe 0.4.3__tar.gz → 0.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sofe-0.4.3/sofe.egg-info → sofe-0.4.4}/PKG-INFO +2 -2
- {sofe-0.4.3 → sofe-0.4.4}/README.md +1 -1
- {sofe-0.4.3 → sofe-0.4.4}/pyproject.toml +1 -1
- {sofe-0.4.3 → sofe-0.4.4}/sofe/__init__.py +1 -1
- {sofe-0.4.3 → sofe-0.4.4}/sofe/engine/__init__.py +5 -1
- {sofe-0.4.3 → sofe-0.4.4/sofe.egg-info}/PKG-INFO +2 -2
- {sofe-0.4.3 → sofe-0.4.4}/LICENSE +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/setup.cfg +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/cli.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/__init__.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/__init__.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/apigateway.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/base.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/cloudfront.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/commitments.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/cost.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/dynamodb.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/ebs.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/ec2.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/ecs.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/eks.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/elasticache.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/elb.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/lambda_.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/natgateway.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/rds.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/recommendations.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/redshift.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/route53.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/s3.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/sagemaker.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/collectors/aws/secretsmanager.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/engine/architecture.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/loader/__init__.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/models/__init__.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/remediation/__init__.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe/remediation/commands.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe.egg-info/SOURCES.txt +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe.egg-info/dependency_links.txt +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe.egg-info/entry_points.txt +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe.egg-info/requires.txt +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/sofe.egg-info/top_level.txt +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/tests/test_architecture.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/tests/test_cli_outputs.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/tests/test_commitments.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/tests/test_recommendations.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/tests/test_savings_policies.py +0 -0
- {sofe-0.4.3 → sofe-0.4.4}/tests/test_validate.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sofe
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
4
4
|
Summary: Stairway Open FinOps Engine — FinOps Policies as Code for AWS
|
|
5
5
|
Author-email: Carlos Cortez <carlos@cortez.cloud>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -51,7 +51,7 @@ Dynamic: license-file
|
|
|
51
51
|
<img src="https://img.shields.io/pypi/v/sofe?style=flat-square&logo=pypi&color=8A2BE2" alt="PyPI">
|
|
52
52
|
<img src="https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square&logo=python" alt="Python">
|
|
53
53
|
<img src="https://img.shields.io/badge/license-Apache_2.0-8A2BE2?style=flat-square" alt="License">
|
|
54
|
-
<img src="https://img.shields.io/badge/policies-
|
|
54
|
+
<img src="https://img.shields.io/badge/policies-39-success?style=flat-square" alt="39 policies">
|
|
55
55
|
<img src="https://img.shields.io/badge/collectors-19-blue?style=flat-square" alt="19 collectors">
|
|
56
56
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs">
|
|
57
57
|
</p>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<img src="https://img.shields.io/pypi/v/sofe?style=flat-square&logo=pypi&color=8A2BE2" alt="PyPI">
|
|
24
24
|
<img src="https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square&logo=python" alt="Python">
|
|
25
25
|
<img src="https://img.shields.io/badge/license-Apache_2.0-8A2BE2?style=flat-square" alt="License">
|
|
26
|
-
<img src="https://img.shields.io/badge/policies-
|
|
26
|
+
<img src="https://img.shields.io/badge/policies-39-success?style=flat-square" alt="39 policies">
|
|
27
27
|
<img src="https://img.shields.io/badge/collectors-19-blue?style=flat-square" alt="19 collectors">
|
|
28
28
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs">
|
|
29
29
|
</p>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"""SOFE — Stairway Open FinOps Engine. Policies as Code for AWS."""
|
|
2
|
-
__version__ = "0.
|
|
2
|
+
__version__ = "0.4.4"
|
|
@@ -139,7 +139,11 @@ def _check_rule(resource: Resource, policy: Policy, context: ArchitectureContext
|
|
|
139
139
|
|
|
140
140
|
# Check additional conditions (AND logic)
|
|
141
141
|
for cond in rule.additional_conditions:
|
|
142
|
-
|
|
142
|
+
# Use explicit None checks — a valid 0.0 metric is falsy and must NOT
|
|
143
|
+
# fall through to properties (that dropped `== 0` conditions silently).
|
|
144
|
+
cond_value = resource.metrics.get(cond.field)
|
|
145
|
+
if cond_value is None:
|
|
146
|
+
cond_value = resource.properties.get(cond.field)
|
|
143
147
|
if cond_value is None:
|
|
144
148
|
return None # Missing data — skip
|
|
145
149
|
if not _apply_operator(float(cond_value), cond.operator, float(cond.value)):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sofe
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.4
|
|
4
4
|
Summary: Stairway Open FinOps Engine — FinOps Policies as Code for AWS
|
|
5
5
|
Author-email: Carlos Cortez <carlos@cortez.cloud>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -51,7 +51,7 @@ Dynamic: license-file
|
|
|
51
51
|
<img src="https://img.shields.io/pypi/v/sofe?style=flat-square&logo=pypi&color=8A2BE2" alt="PyPI">
|
|
52
52
|
<img src="https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square&logo=python" alt="Python">
|
|
53
53
|
<img src="https://img.shields.io/badge/license-Apache_2.0-8A2BE2?style=flat-square" alt="License">
|
|
54
|
-
<img src="https://img.shields.io/badge/policies-
|
|
54
|
+
<img src="https://img.shields.io/badge/policies-39-success?style=flat-square" alt="39 policies">
|
|
55
55
|
<img src="https://img.shields.io/badge/collectors-19-blue?style=flat-square" alt="19 collectors">
|
|
56
56
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen?style=flat-square" alt="PRs">
|
|
57
57
|
</p>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|