import psutil print(f"Memory usage: {psutil.virtual_memory().used / 1024**3:.2f} GiB")