What is Nostr?
David Zaslavsky /
npub1lhr…9ugr
2024-06-16 07:50:49
in reply to nevent1q…qq5r

David Zaslavsky on Nostr: Honestly, my recommendation would be JSON, if you hadn't ruled it out. If there are ...

Honestly, my recommendation would be JSON, if you hadn't ruled it out. If there are only a few values JSON can't handle, you could use a custom encoder and decoder.

Otherwise, maybe try pickle?

I wouldn't use sqlite to store a dict, unless it's guaranteed to be a single-level dict with string keys and basic data type values, and in that case what you have is more like a dataclass or named tuple anyway.

#Python
Author Public Key
npub1lhradzga68009f0j2sven5luqnkpz78nrcp7859fdg4vfu4nq0dqkp9ugr