Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to read in a BOM document? #315

Closed
rolweber opened this issue Dec 13, 2022 · 3 comments
Closed

How to read in a BOM document? #315

rolweber opened this issue Dec 13, 2022 · 3 comments
Labels
question Further information is requested

Comments

@rolweber
Copy link
Contributor

Hello Team,

I need to add more info to a BOM, which I'm planning to generate with cyclonedx-bom. My idea was to use cyclonedx-python-lib to read in the generated BOM, then merge the additional info my team requires, then write out the enriched BOM. Looks like this idea is already failing at the "read in" step.

The documentation says that Parsers were moved to cyclonedx-bom. The parsers there are for foreign formats like conda output or pip requirements files, which makes perfect sense to me. But what I need is a parser which just reads back the format(s) generated by cyclonedx-python-lib itself. That would fit better right here, for example to do round-trip tests: serialize, deserialize, check if everything's still there.

It seems this kind of parser is neither here nor there. I see an output package, but no corresponding input. The parser package has just an abstract base class. The tests generate data programmatically, afaict. Did I miss something? Or is my use case that far off?

cyclonedx-bom supports only json and xml as output formats, so deserializing protocol buffers doesn't seem to be an option for my idea. Besides, I haven't seen a way to deserialize protocol buffers into the objects of this lib either.

@jkowalleck jkowalleck added the question Further information is requested label Dec 13, 2022
@jkowalleck
Copy link
Member

duplicates #185

@jkowalleck
Copy link
Member

jkowalleck commented Dec 13, 2022

thanks for your questions, @rolweber .

the short answer: please see #185 ff

the needed features are planned for https://github.com/CycloneDX/cyclonedx-python-lib/milestone/4

@rolweber
Copy link
Contributor Author

Thanks. Sorry for missing the existing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants