Comment on (In Python) Can you save an object that is in memory to disk and reload it at a later time?
CameronDev@programming.dev 1 month ago
You are describing pickle, but it does come with some serious risks, especially if the file can be modified by a third party.
arjancodes.com/…/python-pickle-module-security-ri…
I’d suggest using protobuf or similar instead, but its a bit more work.