I'm working on a program and I'm currently working on it's crash detection part. It creates a log and shows debug information of the computer. I wanted to show how much RAM the computer has, but I failed to. I possibly cannot think of a way to do this and neither does the entire StackOverflow or Google have this question's answer. If you want some code I've written, here it is. Please ignore my horrible skills.
traceback_log.write(f"## {rand} \n\n\n\nVisualPy encountered an unhandled error.: \n\n\n {error} \n\n ### Debug Information ### \n Architecture: {sys.platform} \n Central Processing Unit Family (CPU): {platform.processor()} \n Central Processing Unit Model (CPU): {cpu} \n Random Access Memory available in total: {ram} \n Guessed reason of crash: {crash_reason}")
I just need a possible solution on how to get the RAM installed. Thank you. Sorry if this question is badly detailed, I'm in a train right now and just needed a quick answer. Sorry.