cfn-check 0.1.1__tar.gz → 0.2.0__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.
Potentially problematic release.
This version of cfn-check might be problematic. Click here for more details.
- {cfn_check-0.1.1 → cfn_check-0.2.0}/PKG-INFO +8 -8
- {cfn_check-0.1.1 → cfn_check-0.2.0}/README.md +8 -8
- cfn_check-0.2.0/cfn_check/__init__.py +2 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/cli/utils/attributes.py +2 -2
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/cli/validate.py +3 -3
- cfn_check-0.2.0/cfn_check/collection/collection.py +2 -0
- cfn_check-0.2.0/cfn_check/validation/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check.egg-info/PKG-INFO +8 -8
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check.egg-info/SOURCES.txt +2 -1
- {cfn_check-0.1.1 → cfn_check-0.2.0}/example/rules.py +2 -2
- {cfn_check-0.1.1 → cfn_check-0.2.0}/pyproject.toml +1 -1
- cfn_check-0.1.1/cfn_check/__init__.py +0 -2
- cfn_check-0.1.1/cfn_check/rules/rules.py +0 -2
- {cfn_check-0.1.1 → cfn_check-0.2.0}/LICENSE +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/cli/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/cli/root.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/cli/utils/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/cli/utils/files.py +0 -0
- {cfn_check-0.1.1/cfn_check/evaluation → cfn_check-0.2.0/cfn_check/collection}/__init__.py +0 -0
- {cfn_check-0.1.1/cfn_check/loader → cfn_check-0.2.0/cfn_check/evaluation}/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/evaluation/check.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/evaluation/errors.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/evaluation/search.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/evaluation/validate.py +0 -0
- {cfn_check-0.1.1/cfn_check/logging → cfn_check-0.2.0/cfn_check/loader}/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/loader/loader.py +0 -0
- {cfn_check-0.1.1/cfn_check/rules → cfn_check-0.2.0/cfn_check/logging}/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/logging/models.py +0 -0
- {cfn_check-0.1.1/cfn_check/shared → cfn_check-0.2.0/cfn_check/rules}/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/rules/rule.py +0 -0
- {cfn_check-0.1.1/cfn_check/validation → cfn_check-0.2.0/cfn_check/shared}/__init__.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/shared/types.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check/validation/validator.py +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check.egg-info/dependency_links.txt +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check.egg-info/entry_points.txt +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check.egg-info/requires.txt +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/cfn_check.egg-info/top_level.txt +0 -0
- {cfn_check-0.1.1 → cfn_check-0.2.0}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cfn-check
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Validate Cloud Formation
|
|
5
5
|
Author-email: Ada Lundhe <adalundhe@lundhe.audio>
|
|
6
6
|
License: MIT License
|
|
@@ -39,7 +39,7 @@ Requires-Dist: hyperlight-cocoa
|
|
|
39
39
|
Requires-Dist: async-logging
|
|
40
40
|
Dynamic: license-file
|
|
41
41
|
|
|
42
|
-
# <b>CFN
|
|
42
|
+
# <b>CFN-Check</b>
|
|
43
43
|
<b>A tool for checking CloudFormation</b>
|
|
44
44
|
|
|
45
45
|
[](https://pypi.org/project/cfn-check/)
|
|
@@ -48,16 +48,16 @@ Dynamic: license-file
|
|
|
48
48
|
[](https://pypi.org/project/cfn-check/)
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
| Package |
|
|
51
|
+
| Package | cfn-check |
|
|
52
52
|
| ----------- | ----------- |
|
|
53
|
-
| Version | 0.
|
|
53
|
+
| Version | 0.2.0 |
|
|
54
54
|
| Download | https://pypi.org/project/cfn-check/ |
|
|
55
55
|
| Source | https://github.com/adalundhe/cfn-check |
|
|
56
56
|
| Keywords | cloud-formation, testing, aws, cli |
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
CFN-Check is a small, fast, friendly tool for validating AWS CloudFormation YAML templates. It is code-driven, with
|
|
60
|
-
rules written as simple, `Rule` decorator wrapped python class methods for `
|
|
60
|
+
rules written as simple, `Rule` decorator wrapped python class methods for `Collection`-inheriting classes.
|
|
61
61
|
|
|
62
62
|
<br/>
|
|
63
63
|
|
|
@@ -88,7 +88,7 @@ Cloud Formation easy while offering both CLI and Python API interfaces.
|
|
|
88
88
|
|
|
89
89
|
- `Python 3.12`
|
|
90
90
|
- Any number of valid CloudFormation templates or a path to said templates.
|
|
91
|
-
- A `.py` file containing at least one `
|
|
91
|
+
- A `.py` file containing at least one `Collection` class with at least one valid `@Rule()` decorated method
|
|
92
92
|
|
|
93
93
|
To get started (we recommend using `uv`), run:
|
|
94
94
|
|
|
@@ -106,10 +106,10 @@ Next open the `rules.py` file and create a basic Python class
|
|
|
106
106
|
as below.
|
|
107
107
|
|
|
108
108
|
```python
|
|
109
|
-
from cfn_check import
|
|
109
|
+
from cfn_check import Collection, Rule
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
class ValidateResourceType(
|
|
112
|
+
class ValidateResourceType(Collection):
|
|
113
113
|
|
|
114
114
|
@Rule(
|
|
115
115
|
"Resources::*::Type",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# <b>CFN
|
|
1
|
+
# <b>CFN-Check</b>
|
|
2
2
|
<b>A tool for checking CloudFormation</b>
|
|
3
3
|
|
|
4
4
|
[](https://pypi.org/project/cfn-check/)
|
|
@@ -7,16 +7,16 @@
|
|
|
7
7
|
[](https://pypi.org/project/cfn-check/)
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
| Package |
|
|
10
|
+
| Package | cfn-check |
|
|
11
11
|
| ----------- | ----------- |
|
|
12
|
-
| Version | 0.
|
|
12
|
+
| Version | 0.2.0 |
|
|
13
13
|
| Download | https://pypi.org/project/cfn-check/ |
|
|
14
14
|
| Source | https://github.com/adalundhe/cfn-check |
|
|
15
15
|
| Keywords | cloud-formation, testing, aws, cli |
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
CFN-Check is a small, fast, friendly tool for validating AWS CloudFormation YAML templates. It is code-driven, with
|
|
19
|
-
rules written as simple, `Rule` decorator wrapped python class methods for `
|
|
19
|
+
rules written as simple, `Rule` decorator wrapped python class methods for `Collection`-inheriting classes.
|
|
20
20
|
|
|
21
21
|
<br/>
|
|
22
22
|
|
|
@@ -47,7 +47,7 @@ Cloud Formation easy while offering both CLI and Python API interfaces.
|
|
|
47
47
|
|
|
48
48
|
- `Python 3.12`
|
|
49
49
|
- Any number of valid CloudFormation templates or a path to said templates.
|
|
50
|
-
- A `.py` file containing at least one `
|
|
50
|
+
- A `.py` file containing at least one `Collection` class with at least one valid `@Rule()` decorated method
|
|
51
51
|
|
|
52
52
|
To get started (we recommend using `uv`), run:
|
|
53
53
|
|
|
@@ -65,10 +65,10 @@ Next open the `rules.py` file and create a basic Python class
|
|
|
65
65
|
as below.
|
|
66
66
|
|
|
67
67
|
```python
|
|
68
|
-
from cfn_check import
|
|
68
|
+
from cfn_check import Collection, Rule
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
class ValidateResourceType(
|
|
71
|
+
class ValidateResourceType(Collection):
|
|
72
72
|
|
|
73
73
|
@Rule(
|
|
74
74
|
"Resources::*::Type",
|
|
@@ -203,4 +203,4 @@ which outputs:
|
|
|
203
203
|
2025-09-17T01:46:41.542078+00:00 - INFO - 19783474 - /Users/adalundhe/Documents/Duckbill/cfn-check/cfn_check/cli/validate.py:validate.80 - ✅ 1 validations met for 1 templates
|
|
204
204
|
```
|
|
205
205
|
|
|
206
|
-
Congrats! You've just made the cloud a bit better place!
|
|
206
|
+
Congrats! You've just made the cloud a bit better place!
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
from cfn_check.
|
|
1
|
+
from cfn_check.collection.collection import Collection
|
|
2
2
|
from cfn_check.validation.validator import Validator
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
def bind(
|
|
6
|
-
rule_set:
|
|
6
|
+
rule_set: Collection,
|
|
7
7
|
validation: Validator
|
|
8
8
|
):
|
|
9
9
|
validation.func = validation.func.__get__(rule_set, rule_set.__class__)
|
|
@@ -7,7 +7,7 @@ from cfn_check.cli.utils.attributes import bind
|
|
|
7
7
|
from cfn_check.cli.utils.files import load_templates
|
|
8
8
|
from cfn_check.evaluation.validate import run_validations
|
|
9
9
|
from cfn_check.logging.models import InfoLog
|
|
10
|
-
from cfn_check.
|
|
10
|
+
from cfn_check.collection.collection import Collection
|
|
11
11
|
from cfn_check.validation.validator import Validator
|
|
12
12
|
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ from cfn_check.validation.validator import Validator
|
|
|
15
15
|
async def validate(
|
|
16
16
|
path: str,
|
|
17
17
|
file_pattern: str | None = None,
|
|
18
|
-
rules: ImportType[
|
|
18
|
+
rules: ImportType[Collection] = None,
|
|
19
19
|
tags: list[str] = [
|
|
20
20
|
'Ref',
|
|
21
21
|
'Sub',
|
|
@@ -38,7 +38,7 @@ async def validate(
|
|
|
38
38
|
'''
|
|
39
39
|
Validate Cloud Foundation
|
|
40
40
|
|
|
41
|
-
@param rules Path to a file containing
|
|
41
|
+
@param rules Path to a file containing Collections
|
|
42
42
|
@param file_pattern A string pattern used to find template files
|
|
43
43
|
@param tags List of CloudFormation intrinsic function tags
|
|
44
44
|
@param log_level The log level to use
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cfn-check
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: Validate Cloud Formation
|
|
5
5
|
Author-email: Ada Lundhe <adalundhe@lundhe.audio>
|
|
6
6
|
License: MIT License
|
|
@@ -39,7 +39,7 @@ Requires-Dist: hyperlight-cocoa
|
|
|
39
39
|
Requires-Dist: async-logging
|
|
40
40
|
Dynamic: license-file
|
|
41
41
|
|
|
42
|
-
# <b>CFN
|
|
42
|
+
# <b>CFN-Check</b>
|
|
43
43
|
<b>A tool for checking CloudFormation</b>
|
|
44
44
|
|
|
45
45
|
[](https://pypi.org/project/cfn-check/)
|
|
@@ -48,16 +48,16 @@ Dynamic: license-file
|
|
|
48
48
|
[](https://pypi.org/project/cfn-check/)
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
| Package |
|
|
51
|
+
| Package | cfn-check |
|
|
52
52
|
| ----------- | ----------- |
|
|
53
|
-
| Version | 0.
|
|
53
|
+
| Version | 0.2.0 |
|
|
54
54
|
| Download | https://pypi.org/project/cfn-check/ |
|
|
55
55
|
| Source | https://github.com/adalundhe/cfn-check |
|
|
56
56
|
| Keywords | cloud-formation, testing, aws, cli |
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
CFN-Check is a small, fast, friendly tool for validating AWS CloudFormation YAML templates. It is code-driven, with
|
|
60
|
-
rules written as simple, `Rule` decorator wrapped python class methods for `
|
|
60
|
+
rules written as simple, `Rule` decorator wrapped python class methods for `Collection`-inheriting classes.
|
|
61
61
|
|
|
62
62
|
<br/>
|
|
63
63
|
|
|
@@ -88,7 +88,7 @@ Cloud Formation easy while offering both CLI and Python API interfaces.
|
|
|
88
88
|
|
|
89
89
|
- `Python 3.12`
|
|
90
90
|
- Any number of valid CloudFormation templates or a path to said templates.
|
|
91
|
-
- A `.py` file containing at least one `
|
|
91
|
+
- A `.py` file containing at least one `Collection` class with at least one valid `@Rule()` decorated method
|
|
92
92
|
|
|
93
93
|
To get started (we recommend using `uv`), run:
|
|
94
94
|
|
|
@@ -106,10 +106,10 @@ Next open the `rules.py` file and create a basic Python class
|
|
|
106
106
|
as below.
|
|
107
107
|
|
|
108
108
|
```python
|
|
109
|
-
from cfn_check import
|
|
109
|
+
from cfn_check import Collection, Rule
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
class ValidateResourceType(
|
|
112
|
+
class ValidateResourceType(Collection):
|
|
113
113
|
|
|
114
114
|
@Rule(
|
|
115
115
|
"Resources::*::Type",
|
|
@@ -14,6 +14,8 @@ cfn_check/cli/validate.py
|
|
|
14
14
|
cfn_check/cli/utils/__init__.py
|
|
15
15
|
cfn_check/cli/utils/attributes.py
|
|
16
16
|
cfn_check/cli/utils/files.py
|
|
17
|
+
cfn_check/collection/__init__.py
|
|
18
|
+
cfn_check/collection/collection.py
|
|
17
19
|
cfn_check/evaluation/__init__.py
|
|
18
20
|
cfn_check/evaluation/check.py
|
|
19
21
|
cfn_check/evaluation/errors.py
|
|
@@ -25,7 +27,6 @@ cfn_check/logging/__init__.py
|
|
|
25
27
|
cfn_check/logging/models.py
|
|
26
28
|
cfn_check/rules/__init__.py
|
|
27
29
|
cfn_check/rules/rule.py
|
|
28
|
-
cfn_check/rules/rules.py
|
|
29
30
|
cfn_check/shared/__init__.py
|
|
30
31
|
cfn_check/shared/types.py
|
|
31
32
|
cfn_check/validation/__init__.py
|
|
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
|