What a nice project you have started, very useful!
I noticed both lookup.py and server.py were sharing code that could be moved to a class both interfaces can use. Also, providing this as a class could help others utilize the tool as a part of their own projects, e.g., by importing both cpe-guesser & CveXplore to participate in a single workflow.
Additionally, I'd suggest using HTTP error code 400 when there's a problem with the request format. HTTP 500 gives an impression something is wrong with the backend.
What a nice project you have started, very useful!
I noticed both lookup.py and server.py were sharing code that could be moved to a class both interfaces can use. Also, providing this as a class could help others utilize the tool as a part of their own projects, e.g., by importing both cpe-guesser & CveXplore to participate in a single workflow.
Additionally, I'd suggest using HTTP error code 400 when there's a problem with the request format. HTTP 500 gives an impression something is wrong with the backend.