finopspp 0.1.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.
- finopspp-0.1.0/LICENSE +201 -0
- finopspp-0.1.0/PKG-INFO +113 -0
- finopspp-0.1.0/README.md +87 -0
- finopspp-0.1.0/finopspp.egg-info/PKG-INFO +113 -0
- finopspp-0.1.0/finopspp.egg-info/SOURCES.txt +11 -0
- finopspp-0.1.0/finopspp.egg-info/dependency_links.txt +1 -0
- finopspp-0.1.0/finopspp.egg-info/entry_points.txt +2 -0
- finopspp-0.1.0/finopspp.egg-info/requires.txt +18 -0
- finopspp-0.1.0/finopspp.egg-info/top_level.txt +1 -0
- finopspp-0.1.0/pyproject.toml +45 -0
- finopspp-0.1.0/setup.cfg +4 -0
- finopspp-0.1.0/src/__main__.py +51 -0
- finopspp-0.1.0/tests/test_assessment_generation.py +52 -0
finopspp-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 FinOps++ Authors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
finopspp-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: finopspp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool used for the FinOps++ Assessment.
|
|
5
|
+
Author: Travis Salas Cox
|
|
6
|
+
Requires-Python: >=3.13
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: click==8.2.1
|
|
10
|
+
Requires-Dist: click-didyoumean==0.3.1
|
|
11
|
+
Requires-Dist: click-help-colors==0.9.4
|
|
12
|
+
Requires-Dist: GitPython==3.1.62
|
|
13
|
+
Requires-Dist: jinja2==3.1.6
|
|
14
|
+
Requires-Dist: pandas==2.3.2
|
|
15
|
+
Requires-Dist: pydantic==2.12.0
|
|
16
|
+
Requires-Dist: pyyaml==6.0.2
|
|
17
|
+
Requires-Dist: rich==14.2.0
|
|
18
|
+
Requires-Dist: semver==3.0.4
|
|
19
|
+
Requires-Dist: textual==8.2.3
|
|
20
|
+
Requires-Dist: xlsxwriter==3.2.5
|
|
21
|
+
Provides-Extra: validation
|
|
22
|
+
Requires-Dist: pylint==4.0.3; extra == "validation"
|
|
23
|
+
Provides-Extra: testing
|
|
24
|
+
Requires-Dist: pytest==9.0.1; extra == "testing"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# CLI Tool
|
|
28
|
+
|
|
29
|
+
To aid with formatting, transforming, and using the yaml specification files, we built the `finopspp` CLI tool. Currently, to use it you have to build it from source from this repository. To do this, please read through [Developing the finopspp CLI tool](/guidelines/development.md#developing-the-finopspp-cli-tool) in the [development](/guidelines/development.md) guide.
|
|
30
|
+
|
|
31
|
+
Below we will go through a few of the key commands this CLI tools provides. If you have the tool installed, we encourage you to play around with the tools and look at commands not discussed below, such as the `finopspp version` command.
|
|
32
|
+
|
|
33
|
+
## Generating commands
|
|
34
|
+
|
|
35
|
+
The most useful commands to use with `finopspp` will be related to generate some aspect of the framework. Either markdown documentation or Excel files.
|
|
36
|
+
|
|
37
|
+
### Framework Markdown & Assessment Worksheet
|
|
38
|
+
|
|
39
|
+
The most useful (or powerful) of the most useful commands offered by `finopspp` is the command used to generate the framework markdown and assessment worksheet files for a profile. The framework markdown files are designed to give a one-stop shop for getting an overview, in tabular format, of how a framework (generated from a profile) is logically grouped together. While the assessment worksheet is used for scoring the priority weighted maturity of an organization against action completeness for a profile.
|
|
40
|
+
|
|
41
|
+
To generate the markdown for the framework overview and assessment excel file, make sure that the profile you desire to use is included under [specifications/profiles](https://github.com/FinOpsPP/Framework-Assessment/tree/main/specifications/profiles/) or, if need be, create a new profile.
|
|
42
|
+
|
|
43
|
+
Then run the following
|
|
44
|
+
|
|
45
|
+
```{sh}
|
|
46
|
+
finopspp generate assessment --profile="<desired-profile-name>"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
you can run `finopspp generate assessment --help` to see the list of profile options. The files generated by this command can be found in [assessments](https://github.com/FinOpsPP/Framework-Assessment/tree/main/assessments/). Simply search in this directory for a `<desired-profile-name>` subdirectory. This subdirectory will include your framework markdown and assessment.
|
|
50
|
+
|
|
51
|
+
### Components Markdown
|
|
52
|
+
|
|
53
|
+
These files are designed to be generally more human readable and easier to navigate than the yaml specifications. The four components supported directly correlate with the four specification types used currently by `finopspp`. Which are `profiles`, `domains`, `capabilities`, and `actions`; and can be found in subdirectories of the same names under.
|
|
54
|
+
|
|
55
|
+
- [components/profiles](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/profiles/)
|
|
56
|
+
- [components/domains](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/domains/)
|
|
57
|
+
- [components/capabilities](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/capabilities/)
|
|
58
|
+
- [components/actions](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/actions/)
|
|
59
|
+
|
|
60
|
+
> [!NOTE]
|
|
61
|
+
> `profiles` markdown files are generated and offered on an as-best-as-possible basis. This is because of the customization allowed for this type. Generally it is recommended to use the Framework markdown to get a true overview of the profiles. But we include them for the sake of compilation.
|
|
62
|
+
|
|
63
|
+
To generate the files in these folder fresh from the yaml files, you can call the following command
|
|
64
|
+
|
|
65
|
+
```{sh}
|
|
66
|
+
finopspp generate components --specification-type=<desired-spec-type> <spec-id-or-all-or-diff>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
> [!NOTE]
|
|
70
|
+
> The serialization number for a markdown file uses the schema `xxx.md`, where `xxx` will match the serialization number of the yaml specification for the profile or component.
|
|
71
|
+
|
|
72
|
+
Using this command, you can generate a component markdown file for a specific specification ID, for a specific specification type. If you pass in `all`, you can generate the component markdown files for all specifications under a given type specific type. While passing `diff` will generate component markdown files for the specifications of a given type that have changed when compared to the `main` branch of the repository. This last option requires the `git` tool to be installed. For more on that please read the [Development](/guidelines/development.md) Guideline.
|
|
73
|
+
|
|
74
|
+
## Specification commands
|
|
75
|
+
|
|
76
|
+
A set of utility commands that can do a number of different actions relevant to the yaml specifications. This range from showing the [OpenAPI schema](https://www.openapis.org/what-is-openapi) for the different specifications types, to full updates of the specifications via changes to a specification model derived using [Pydantic](https://docs.pydantic.dev/latest/concepts/models/).
|
|
77
|
+
|
|
78
|
+
### Validation
|
|
79
|
+
|
|
80
|
+
One of the most useful command is the validation command
|
|
81
|
+
|
|
82
|
+
```{sh}
|
|
83
|
+
finopspp specifications validate --specification-type=<desired-spec-type> <spec-id-or-all-or-diff>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
With this, you can validate a specific specification by ID and type. While, by passing in `all`, you can validate all specification for a specific type. Or, if you have `git` installed, you can pass `diff` which will validate only the specifications of a given type that have changed when compared to the `main` branch of the repository.
|
|
87
|
+
|
|
88
|
+
Validation is relatively strict, and makes uses of Pydantic [validator](https://docs.pydantic.dev/latest/concepts/validators/). Validation failures are logged to stderr for the user, and results in a failure return code on the command if any specifications fail to validate during a run.
|
|
89
|
+
|
|
90
|
+
### Update
|
|
91
|
+
|
|
92
|
+
Another really useful command is `update`, which can be called with the following
|
|
93
|
+
|
|
94
|
+
```{sh}
|
|
95
|
+
finopspp specifications update --specification-type=<desired-spec-type> <spec-id-or-all>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Giving a specification type, and corresponding changes to the specification type's [model definitions](/src/models/definitions.py), you can update that specification type's files by ID or all at once to match the new definition. Some updates work out-of-the-box, like adding/removing fields. While other more complex updates, such as renaming a field or changing the order of fields in the schema, are allowed by creating custom alias for fields or by using Pydantic [model_serializer](https://docs.pydantic.dev/latest/api/functional_serializers/#pydantic.functional_serializers.model_serializer).
|
|
99
|
+
|
|
100
|
+
### New
|
|
101
|
+
|
|
102
|
+
The `new` command will allow you to create new specification files from smart defaults, which can be found, in code, under [models/defaults.py](/src/models/defaults.py). The new specification file, created for a desired specification type, can be used as template to fill-in until the specification is in a state that is ready to be publish.
|
|
103
|
+
|
|
104
|
+
The command to create these new specification is simply
|
|
105
|
+
|
|
106
|
+
```{sh}
|
|
107
|
+
finopspp specifications new --specification-type=<desired-spec-type> <desired-id>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
> [!IMPORTANT]
|
|
111
|
+
> If you are creating a new profile, make sure to select a Title for the specification that has not already been used. Otherwise this will cause a collision issues with the generate assessment command.
|
|
112
|
+
|
|
113
|
+
The only requirement is that the desired ID be unique. If it has been used previously, an error will be returned and the specification file will not be created.
|
finopspp-0.1.0/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# CLI Tool
|
|
2
|
+
|
|
3
|
+
To aid with formatting, transforming, and using the yaml specification files, we built the `finopspp` CLI tool. Currently, to use it you have to build it from source from this repository. To do this, please read through [Developing the finopspp CLI tool](/guidelines/development.md#developing-the-finopspp-cli-tool) in the [development](/guidelines/development.md) guide.
|
|
4
|
+
|
|
5
|
+
Below we will go through a few of the key commands this CLI tools provides. If you have the tool installed, we encourage you to play around with the tools and look at commands not discussed below, such as the `finopspp version` command.
|
|
6
|
+
|
|
7
|
+
## Generating commands
|
|
8
|
+
|
|
9
|
+
The most useful commands to use with `finopspp` will be related to generate some aspect of the framework. Either markdown documentation or Excel files.
|
|
10
|
+
|
|
11
|
+
### Framework Markdown & Assessment Worksheet
|
|
12
|
+
|
|
13
|
+
The most useful (or powerful) of the most useful commands offered by `finopspp` is the command used to generate the framework markdown and assessment worksheet files for a profile. The framework markdown files are designed to give a one-stop shop for getting an overview, in tabular format, of how a framework (generated from a profile) is logically grouped together. While the assessment worksheet is used for scoring the priority weighted maturity of an organization against action completeness for a profile.
|
|
14
|
+
|
|
15
|
+
To generate the markdown for the framework overview and assessment excel file, make sure that the profile you desire to use is included under [specifications/profiles](https://github.com/FinOpsPP/Framework-Assessment/tree/main/specifications/profiles/) or, if need be, create a new profile.
|
|
16
|
+
|
|
17
|
+
Then run the following
|
|
18
|
+
|
|
19
|
+
```{sh}
|
|
20
|
+
finopspp generate assessment --profile="<desired-profile-name>"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
you can run `finopspp generate assessment --help` to see the list of profile options. The files generated by this command can be found in [assessments](https://github.com/FinOpsPP/Framework-Assessment/tree/main/assessments/). Simply search in this directory for a `<desired-profile-name>` subdirectory. This subdirectory will include your framework markdown and assessment.
|
|
24
|
+
|
|
25
|
+
### Components Markdown
|
|
26
|
+
|
|
27
|
+
These files are designed to be generally more human readable and easier to navigate than the yaml specifications. The four components supported directly correlate with the four specification types used currently by `finopspp`. Which are `profiles`, `domains`, `capabilities`, and `actions`; and can be found in subdirectories of the same names under.
|
|
28
|
+
|
|
29
|
+
- [components/profiles](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/profiles/)
|
|
30
|
+
- [components/domains](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/domains/)
|
|
31
|
+
- [components/capabilities](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/capabilities/)
|
|
32
|
+
- [components/actions](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/actions/)
|
|
33
|
+
|
|
34
|
+
> [!NOTE]
|
|
35
|
+
> `profiles` markdown files are generated and offered on an as-best-as-possible basis. This is because of the customization allowed for this type. Generally it is recommended to use the Framework markdown to get a true overview of the profiles. But we include them for the sake of compilation.
|
|
36
|
+
|
|
37
|
+
To generate the files in these folder fresh from the yaml files, you can call the following command
|
|
38
|
+
|
|
39
|
+
```{sh}
|
|
40
|
+
finopspp generate components --specification-type=<desired-spec-type> <spec-id-or-all-or-diff>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
> [!NOTE]
|
|
44
|
+
> The serialization number for a markdown file uses the schema `xxx.md`, where `xxx` will match the serialization number of the yaml specification for the profile or component.
|
|
45
|
+
|
|
46
|
+
Using this command, you can generate a component markdown file for a specific specification ID, for a specific specification type. If you pass in `all`, you can generate the component markdown files for all specifications under a given type specific type. While passing `diff` will generate component markdown files for the specifications of a given type that have changed when compared to the `main` branch of the repository. This last option requires the `git` tool to be installed. For more on that please read the [Development](/guidelines/development.md) Guideline.
|
|
47
|
+
|
|
48
|
+
## Specification commands
|
|
49
|
+
|
|
50
|
+
A set of utility commands that can do a number of different actions relevant to the yaml specifications. This range from showing the [OpenAPI schema](https://www.openapis.org/what-is-openapi) for the different specifications types, to full updates of the specifications via changes to a specification model derived using [Pydantic](https://docs.pydantic.dev/latest/concepts/models/).
|
|
51
|
+
|
|
52
|
+
### Validation
|
|
53
|
+
|
|
54
|
+
One of the most useful command is the validation command
|
|
55
|
+
|
|
56
|
+
```{sh}
|
|
57
|
+
finopspp specifications validate --specification-type=<desired-spec-type> <spec-id-or-all-or-diff>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
With this, you can validate a specific specification by ID and type. While, by passing in `all`, you can validate all specification for a specific type. Or, if you have `git` installed, you can pass `diff` which will validate only the specifications of a given type that have changed when compared to the `main` branch of the repository.
|
|
61
|
+
|
|
62
|
+
Validation is relatively strict, and makes uses of Pydantic [validator](https://docs.pydantic.dev/latest/concepts/validators/). Validation failures are logged to stderr for the user, and results in a failure return code on the command if any specifications fail to validate during a run.
|
|
63
|
+
|
|
64
|
+
### Update
|
|
65
|
+
|
|
66
|
+
Another really useful command is `update`, which can be called with the following
|
|
67
|
+
|
|
68
|
+
```{sh}
|
|
69
|
+
finopspp specifications update --specification-type=<desired-spec-type> <spec-id-or-all>
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Giving a specification type, and corresponding changes to the specification type's [model definitions](/src/models/definitions.py), you can update that specification type's files by ID or all at once to match the new definition. Some updates work out-of-the-box, like adding/removing fields. While other more complex updates, such as renaming a field or changing the order of fields in the schema, are allowed by creating custom alias for fields or by using Pydantic [model_serializer](https://docs.pydantic.dev/latest/api/functional_serializers/#pydantic.functional_serializers.model_serializer).
|
|
73
|
+
|
|
74
|
+
### New
|
|
75
|
+
|
|
76
|
+
The `new` command will allow you to create new specification files from smart defaults, which can be found, in code, under [models/defaults.py](/src/models/defaults.py). The new specification file, created for a desired specification type, can be used as template to fill-in until the specification is in a state that is ready to be publish.
|
|
77
|
+
|
|
78
|
+
The command to create these new specification is simply
|
|
79
|
+
|
|
80
|
+
```{sh}
|
|
81
|
+
finopspp specifications new --specification-type=<desired-spec-type> <desired-id>
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
> [!IMPORTANT]
|
|
85
|
+
> If you are creating a new profile, make sure to select a Title for the specification that has not already been used. Otherwise this will cause a collision issues with the generate assessment command.
|
|
86
|
+
|
|
87
|
+
The only requirement is that the desired ID be unique. If it has been used previously, an error will be returned and the specification file will not be created.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: finopspp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: CLI tool used for the FinOps++ Assessment.
|
|
5
|
+
Author: Travis Salas Cox
|
|
6
|
+
Requires-Python: >=3.13
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: click==8.2.1
|
|
10
|
+
Requires-Dist: click-didyoumean==0.3.1
|
|
11
|
+
Requires-Dist: click-help-colors==0.9.4
|
|
12
|
+
Requires-Dist: GitPython==3.1.62
|
|
13
|
+
Requires-Dist: jinja2==3.1.6
|
|
14
|
+
Requires-Dist: pandas==2.3.2
|
|
15
|
+
Requires-Dist: pydantic==2.12.0
|
|
16
|
+
Requires-Dist: pyyaml==6.0.2
|
|
17
|
+
Requires-Dist: rich==14.2.0
|
|
18
|
+
Requires-Dist: semver==3.0.4
|
|
19
|
+
Requires-Dist: textual==8.2.3
|
|
20
|
+
Requires-Dist: xlsxwriter==3.2.5
|
|
21
|
+
Provides-Extra: validation
|
|
22
|
+
Requires-Dist: pylint==4.0.3; extra == "validation"
|
|
23
|
+
Provides-Extra: testing
|
|
24
|
+
Requires-Dist: pytest==9.0.1; extra == "testing"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# CLI Tool
|
|
28
|
+
|
|
29
|
+
To aid with formatting, transforming, and using the yaml specification files, we built the `finopspp` CLI tool. Currently, to use it you have to build it from source from this repository. To do this, please read through [Developing the finopspp CLI tool](/guidelines/development.md#developing-the-finopspp-cli-tool) in the [development](/guidelines/development.md) guide.
|
|
30
|
+
|
|
31
|
+
Below we will go through a few of the key commands this CLI tools provides. If you have the tool installed, we encourage you to play around with the tools and look at commands not discussed below, such as the `finopspp version` command.
|
|
32
|
+
|
|
33
|
+
## Generating commands
|
|
34
|
+
|
|
35
|
+
The most useful commands to use with `finopspp` will be related to generate some aspect of the framework. Either markdown documentation or Excel files.
|
|
36
|
+
|
|
37
|
+
### Framework Markdown & Assessment Worksheet
|
|
38
|
+
|
|
39
|
+
The most useful (or powerful) of the most useful commands offered by `finopspp` is the command used to generate the framework markdown and assessment worksheet files for a profile. The framework markdown files are designed to give a one-stop shop for getting an overview, in tabular format, of how a framework (generated from a profile) is logically grouped together. While the assessment worksheet is used for scoring the priority weighted maturity of an organization against action completeness for a profile.
|
|
40
|
+
|
|
41
|
+
To generate the markdown for the framework overview and assessment excel file, make sure that the profile you desire to use is included under [specifications/profiles](https://github.com/FinOpsPP/Framework-Assessment/tree/main/specifications/profiles/) or, if need be, create a new profile.
|
|
42
|
+
|
|
43
|
+
Then run the following
|
|
44
|
+
|
|
45
|
+
```{sh}
|
|
46
|
+
finopspp generate assessment --profile="<desired-profile-name>"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
you can run `finopspp generate assessment --help` to see the list of profile options. The files generated by this command can be found in [assessments](https://github.com/FinOpsPP/Framework-Assessment/tree/main/assessments/). Simply search in this directory for a `<desired-profile-name>` subdirectory. This subdirectory will include your framework markdown and assessment.
|
|
50
|
+
|
|
51
|
+
### Components Markdown
|
|
52
|
+
|
|
53
|
+
These files are designed to be generally more human readable and easier to navigate than the yaml specifications. The four components supported directly correlate with the four specification types used currently by `finopspp`. Which are `profiles`, `domains`, `capabilities`, and `actions`; and can be found in subdirectories of the same names under.
|
|
54
|
+
|
|
55
|
+
- [components/profiles](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/profiles/)
|
|
56
|
+
- [components/domains](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/domains/)
|
|
57
|
+
- [components/capabilities](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/capabilities/)
|
|
58
|
+
- [components/actions](https://github.com/FinOpsPP/Framework-Assessment/tree/main/components/actions/)
|
|
59
|
+
|
|
60
|
+
> [!NOTE]
|
|
61
|
+
> `profiles` markdown files are generated and offered on an as-best-as-possible basis. This is because of the customization allowed for this type. Generally it is recommended to use the Framework markdown to get a true overview of the profiles. But we include them for the sake of compilation.
|
|
62
|
+
|
|
63
|
+
To generate the files in these folder fresh from the yaml files, you can call the following command
|
|
64
|
+
|
|
65
|
+
```{sh}
|
|
66
|
+
finopspp generate components --specification-type=<desired-spec-type> <spec-id-or-all-or-diff>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
> [!NOTE]
|
|
70
|
+
> The serialization number for a markdown file uses the schema `xxx.md`, where `xxx` will match the serialization number of the yaml specification for the profile or component.
|
|
71
|
+
|
|
72
|
+
Using this command, you can generate a component markdown file for a specific specification ID, for a specific specification type. If you pass in `all`, you can generate the component markdown files for all specifications under a given type specific type. While passing `diff` will generate component markdown files for the specifications of a given type that have changed when compared to the `main` branch of the repository. This last option requires the `git` tool to be installed. For more on that please read the [Development](/guidelines/development.md) Guideline.
|
|
73
|
+
|
|
74
|
+
## Specification commands
|
|
75
|
+
|
|
76
|
+
A set of utility commands that can do a number of different actions relevant to the yaml specifications. This range from showing the [OpenAPI schema](https://www.openapis.org/what-is-openapi) for the different specifications types, to full updates of the specifications via changes to a specification model derived using [Pydantic](https://docs.pydantic.dev/latest/concepts/models/).
|
|
77
|
+
|
|
78
|
+
### Validation
|
|
79
|
+
|
|
80
|
+
One of the most useful command is the validation command
|
|
81
|
+
|
|
82
|
+
```{sh}
|
|
83
|
+
finopspp specifications validate --specification-type=<desired-spec-type> <spec-id-or-all-or-diff>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
With this, you can validate a specific specification by ID and type. While, by passing in `all`, you can validate all specification for a specific type. Or, if you have `git` installed, you can pass `diff` which will validate only the specifications of a given type that have changed when compared to the `main` branch of the repository.
|
|
87
|
+
|
|
88
|
+
Validation is relatively strict, and makes uses of Pydantic [validator](https://docs.pydantic.dev/latest/concepts/validators/). Validation failures are logged to stderr for the user, and results in a failure return code on the command if any specifications fail to validate during a run.
|
|
89
|
+
|
|
90
|
+
### Update
|
|
91
|
+
|
|
92
|
+
Another really useful command is `update`, which can be called with the following
|
|
93
|
+
|
|
94
|
+
```{sh}
|
|
95
|
+
finopspp specifications update --specification-type=<desired-spec-type> <spec-id-or-all>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
Giving a specification type, and corresponding changes to the specification type's [model definitions](/src/models/definitions.py), you can update that specification type's files by ID or all at once to match the new definition. Some updates work out-of-the-box, like adding/removing fields. While other more complex updates, such as renaming a field or changing the order of fields in the schema, are allowed by creating custom alias for fields or by using Pydantic [model_serializer](https://docs.pydantic.dev/latest/api/functional_serializers/#pydantic.functional_serializers.model_serializer).
|
|
99
|
+
|
|
100
|
+
### New
|
|
101
|
+
|
|
102
|
+
The `new` command will allow you to create new specification files from smart defaults, which can be found, in code, under [models/defaults.py](/src/models/defaults.py). The new specification file, created for a desired specification type, can be used as template to fill-in until the specification is in a state that is ready to be publish.
|
|
103
|
+
|
|
104
|
+
The command to create these new specification is simply
|
|
105
|
+
|
|
106
|
+
```{sh}
|
|
107
|
+
finopspp specifications new --specification-type=<desired-spec-type> <desired-id>
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
> [!IMPORTANT]
|
|
111
|
+
> If you are creating a new profile, make sure to select a Title for the specification that has not already been used. Otherwise this will cause a collision issues with the generate assessment command.
|
|
112
|
+
|
|
113
|
+
The only requirement is that the desired ID be unique. If it has been used previously, an error will be returned and the specification file will not be created.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
finopspp.egg-info/PKG-INFO
|
|
5
|
+
finopspp.egg-info/SOURCES.txt
|
|
6
|
+
finopspp.egg-info/dependency_links.txt
|
|
7
|
+
finopspp.egg-info/entry_points.txt
|
|
8
|
+
finopspp.egg-info/requires.txt
|
|
9
|
+
finopspp.egg-info/top_level.txt
|
|
10
|
+
src/__main__.py
|
|
11
|
+
tests/test_assessment_generation.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
click==8.2.1
|
|
2
|
+
click-didyoumean==0.3.1
|
|
3
|
+
click-help-colors==0.9.4
|
|
4
|
+
GitPython==3.1.62
|
|
5
|
+
jinja2==3.1.6
|
|
6
|
+
pandas==2.3.2
|
|
7
|
+
pydantic==2.12.0
|
|
8
|
+
pyyaml==6.0.2
|
|
9
|
+
rich==14.2.0
|
|
10
|
+
semver==3.0.4
|
|
11
|
+
textual==8.2.3
|
|
12
|
+
xlsxwriter==3.2.5
|
|
13
|
+
|
|
14
|
+
[testing]
|
|
15
|
+
pytest==9.0.1
|
|
16
|
+
|
|
17
|
+
[validation]
|
|
18
|
+
pylint==4.0.3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
finopspp
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=80.9.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "finopspp"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "CLI tool used for the FinOps++ Assessment."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.13"
|
|
11
|
+
authors = [{ name = "Travis Salas Cox" }]
|
|
12
|
+
dependencies = [
|
|
13
|
+
"click == 8.2.1",
|
|
14
|
+
"click-didyoumean == 0.3.1",
|
|
15
|
+
"click-help-colors == 0.9.4",
|
|
16
|
+
"GitPython == 3.1.62",
|
|
17
|
+
"jinja2 == 3.1.6",
|
|
18
|
+
"pandas == 2.3.2",
|
|
19
|
+
"pydantic == 2.12.0",
|
|
20
|
+
"pyyaml == 6.0.2",
|
|
21
|
+
"rich == 14.2.0",
|
|
22
|
+
"semver == 3.0.4",
|
|
23
|
+
"textual == 8.2.3",
|
|
24
|
+
"xlsxwriter == 3.2.5"
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
validation = [
|
|
29
|
+
"pylint == 4.0.3"
|
|
30
|
+
]
|
|
31
|
+
testing = [
|
|
32
|
+
"pytest == 9.0.1"
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
finopspp = "finopspp.__main__:cli"
|
|
37
|
+
|
|
38
|
+
[tool.setuptools]
|
|
39
|
+
packages = ["finopspp"]
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.package-dir]
|
|
42
|
+
"finopspp" = "src"
|
|
43
|
+
"finopspp.commands" = "src/commands"
|
|
44
|
+
"finopspp.models" = "src/models"
|
|
45
|
+
"finopspp.templates" = "src/templates"
|
finopspp-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"""primary code for the finopspp CLI"""
|
|
2
|
+
import os
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
import click
|
|
6
|
+
|
|
7
|
+
from finopspp.commands import utils
|
|
8
|
+
from finopspp.commands.init import group as init_group
|
|
9
|
+
from finopspp.commands.info import group as info_group
|
|
10
|
+
from finopspp.commands.generate import group as generate_group
|
|
11
|
+
from finopspp.commands.specifications import group as specifications_group
|
|
12
|
+
from finopspp.commands.inventory import group as inventory_group
|
|
13
|
+
from finopspp.commands.variables import group as variables_group
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@click.group(cls=utils.ClickGroup)
|
|
17
|
+
@click.pass_context
|
|
18
|
+
def cli(ctx):
|
|
19
|
+
"""FinOps++ administration tool"""
|
|
20
|
+
home_directory = os.path.expanduser('~')
|
|
21
|
+
config_path = os.path.join(home_directory, '.finopspp', 'config.toml')
|
|
22
|
+
if not os.path.exists(config_path) and 'init' not in ctx.invoked_subcommand:
|
|
23
|
+
click.secho(
|
|
24
|
+
'Tool configuration does not exist. Please run `finopspp init`',
|
|
25
|
+
err=True,
|
|
26
|
+
fg='red'
|
|
27
|
+
)
|
|
28
|
+
sys.exit(1)
|
|
29
|
+
if 'init' in ctx.invoked_subcommand:
|
|
30
|
+
return
|
|
31
|
+
|
|
32
|
+
# load up the config based on the path. This command can exit if an invalid config is found
|
|
33
|
+
utils.load_config(config_path)
|
|
34
|
+
|
|
35
|
+
# configure profiles and variables from what are found
|
|
36
|
+
utils.profiles()
|
|
37
|
+
utils.variables()
|
|
38
|
+
|
|
39
|
+
cli.add_command(init_group.init)
|
|
40
|
+
cli.add_command(init_group.validate, name='init-validate')
|
|
41
|
+
cli.add_command(info_group.info)
|
|
42
|
+
cli.add_command(generate_group.generate)
|
|
43
|
+
cli.add_command(specifications_group.specifications)
|
|
44
|
+
cli.add_command(inventory_group.inventory)
|
|
45
|
+
cli.add_command(variables_group.variables)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# include for those running script directly
|
|
49
|
+
# as a python module.
|
|
50
|
+
if __name__ == "__main__":
|
|
51
|
+
cli() # pylint: disable=no-value-for-parameter
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"""Test composers"""
|
|
2
|
+
import json
|
|
3
|
+
import os
|
|
4
|
+
|
|
5
|
+
import yaml
|
|
6
|
+
|
|
7
|
+
from finopspp.commands import utils
|
|
8
|
+
from finopspp.commands.generate.helpers import specification_collector
|
|
9
|
+
from finopspp.commands.generate.composers.helpers import normalize
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
def test_normalize():
|
|
13
|
+
"""Test for the composer util 'normalize'"""
|
|
14
|
+
profile = 'Example Profile'
|
|
15
|
+
home_directory = os.path.expanduser('~')
|
|
16
|
+
config_path = os.path.join(home_directory, '.finopspp', 'config.toml')
|
|
17
|
+
utils.load_config(config_path)
|
|
18
|
+
utils.profiles(testing=True)
|
|
19
|
+
with open(utils.ProfilesMap[profile], 'r', encoding='utf-8') as yaml_file:
|
|
20
|
+
profile_yaml = yaml.safe_load(
|
|
21
|
+
yaml_file
|
|
22
|
+
)
|
|
23
|
+
profile_spec = profile_yaml['Specification']
|
|
24
|
+
profile_spec['version'] = profile_yaml['Metadata']['Version']
|
|
25
|
+
|
|
26
|
+
# pull in formatted domains data-dict
|
|
27
|
+
# example specifications should only ever be in the Proposed status
|
|
28
|
+
allowed_statuses = [
|
|
29
|
+
'Proposed'
|
|
30
|
+
]
|
|
31
|
+
variables = {}
|
|
32
|
+
domains = specification_collector(
|
|
33
|
+
profile, profile_spec, allowed_statuses, variables
|
|
34
|
+
)
|
|
35
|
+
assert domains
|
|
36
|
+
|
|
37
|
+
data_path = os.path.join(os.getcwd(), 'tests/data/expected_example_domains.json')
|
|
38
|
+
with open(data_path, mode='r', encoding='utf-8') as in_file:
|
|
39
|
+
expected_domains = json.load(in_file)
|
|
40
|
+
|
|
41
|
+
assert domains == expected_domains
|
|
42
|
+
|
|
43
|
+
# now normalize the domains
|
|
44
|
+
normalized_domains = normalize(domains)
|
|
45
|
+
assert normalized_domains is not None
|
|
46
|
+
|
|
47
|
+
data_path = os.path.join(os.getcwd(), 'tests/data/expected_example_dataframe.json')
|
|
48
|
+
with open(data_path, mode='r', encoding='utf-8') as in_file:
|
|
49
|
+
expected_dataframe = json.load(in_file)
|
|
50
|
+
|
|
51
|
+
json_dataframe = json.loads(normalized_domains.to_json())
|
|
52
|
+
assert json_dataframe == expected_dataframe
|