You can download installation package for supported linux distributions in Open Build Service
dmiget
dmiget dmi:///bios/vendor
import smbios
value = smbios.Value('chassis','serial')
print(value)
import smbios
value = smbios.Value('dmi:///chassis/serial')
print(value)
import smbios
value = smbios.memsize()
print(value)
print(int(value))
import smbios
for node in smbios.nodes():
print(node)
for value in node.values():
print(' {}: {}'.format(value.description,value))
#include <smbios/node.h>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
Node node{"chassis"};
cout << node.name() << " - " << node << endl;
cout << node["manufacturer"] << endl;
return 0;
}