bmaxv on Nostr: #python I have a data storage problem. I have a dict with basic data types that I ...
#python I have a data storage problem. I have a dict with basic data types that I want to save and load.
I don't want json because that messes with the numbers / strings.
I don't want to setup sqlite.
I want
save(fn,my_data)
data=load(fn)
What are your recommendations?
Published at
2024-06-16 07:28:23Event JSON
{
"id": "32d28ae8192e919b236d417437c510e1c28102af1c0063fbfdd682dbaefed0ce",
"pubkey": "be57699118430b766b53fbefa9aa1bcafe2278b094580322145fe7175313c8d8",
"created_at": 1718522903,
"kind": 1,
"tags": [
[
"proxy",
"https://noc.social/@bmaxv/112625117015228649",
"web"
],
[
"t",
"python"
],
[
"proxy",
"https://noc.social/users/bmaxv/statuses/112625117015228649",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://noc.social/users/bmaxv/statuses/112625117015228649",
"pink.momostr"
]
],
"content": "#python I have a data storage problem. I have a dict with basic data types that I want to save and load.\n\nI don't want json because that messes with the numbers / strings.\n\nI don't want to setup sqlite.\n\nI want \n\nsave(fn,my_data)\ndata=load(fn)\n\nWhat are your recommendations?",
"sig": "8d3b6af09377ab432d81aec6f7f29ea861ce44a6594e11c7062bed438b626eaa3886e042034888825d0f2910b7cef4d70b084112ecdead74ffd35df309a9e250"
}