Closed sustefil closed 2 years ago
Hi @sthagen ,
Could you pretty please push a new turvallisuusneuvonta version to PyPi? The current one (2022.2.13) doesn't include the mandatory
package, so I cannot:
import turvallisuusneuvonta.csaf.core.rules.mandatory.mandatory
Thanks!
https://github.com/sthagen/turvallisuusneuvonta/issues/11 → v2022.2.14 on PyPI:
The Programming API gives some hints on how to not have to type import monsters ๐น like import turvallisuusneuvonta.csaf.core.rules.mandatory.mandatory
.
PS: When all rules are implemented and kind of tested:
csaf
@sustefil, @cgi1, @tschmidtb51: When (3.) is accomplished, the python internal use will be as simple as:
import csaf
csaf_doc_as_dict = ... # essentially a json.load(...)
if csaf.is_valid(csaf_doc_as_dict):
print('CSAF document is valid')
@sthagen Thanks for the great work!
As discussed here:
https://github.com/csaf-tools/CVRF-CSAF-Converter/issues/14#issuecomment-1039012590
Integrate the mandatory tests into cvrf2csaf.py:
https://github.com/sthagen/turvallisuusneuvonta