Boavizta / boaviztapi

🛠 Giving access to BOAVIZTA reference data and methodologies trough a RESTful API
GNU Affero General Public License v3.0
66 stars 23 forks source link

Automatically and adaptively search for CPU family name, instead of looking for the exact match #120

Closed bpetit closed 1 year ago

bpetit commented 1 year ago

Problem

In boagent, the CPU family name (ie. Kaby Lake, or Broadwell, ...) is fetched in one word, wether it's a composite or a one-word name. Kaby Lake if fetched as "Kabylake". This is how it is returned by libraries such as cpuinfo or cpuid.

Thing is there is no elegant, programmatic solution to send the right request to the API, if it's two word or only one, or even to know where to cut those two words if needed.

Solution

It would be great if the API could "smartly" search for the CPU family in its csv files, even if there is a missing space or some other changes in the full name.

da-ekchajzer commented 1 year ago

Thank you for your issue.

Duplicated with https://github.com/Boavizta/boaviztapi/issues/75 and implemented in the v0.2. The API will also be able to retrieve the CPU family from a CPU name.

We plan to have a pre-release soon (matter of days/weeks)

bpetit commented 1 year ago

Amazing, sorry for the duplicate !