GithubHelp home page GithubHelp logo

Comments (2)

goneall avatar goneall commented on June 29, 2024

@jspeed-meyers I like the proposed approach. I especially like your proposal of creating an SBOM object / class - but perhaps not as a singleton for reasons described below.

I'm thinking the SBOM class may allow the conformance checker to be used as a library by other applications that may want more control of the output (e.g. the SPDX online tools). If we wanted to expose the SBOM in a library, we may not want it to be a singleton so that multiple SBOMs could be used concurrently. That being said, I think most cases would only deal with one SBOM at a time.

For printing the results, would you create a function that accesses the SBOM and generates the output? I'm not very familiar with Python, but in Java it would also be convenient for the SBOM to have a toString() function that would display a summary of the information suitable for printing in debug situations.

from ntia-conformance-checker.

jspeed-meyers avatar jspeed-meyers commented on June 29, 2024

Ah, I see your point. I like it. Yes, I will make a class, but I will write in such a way that, as a library, there can be multiple SBOM objects.

For printing the results, would you create a function that accesses the SBOM and generates the output?

Yes!

I'm not very familiar with Python, but in Java it would also be convenient for the SBOM to have a toString() function that would display a summary of the information suitable for printing in debug situations.

Great idea. I will also write a toString() function that enables debugging.

Thank you for the feedback!!

from ntia-conformance-checker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.