laanwj on Nostr: yes, it's such a simple protocol, and most libraries tend to be kinda ...
yes, it's such a simple protocol, and most libraries tend to be kinda over-designed-which is useful if you really want to make a full client, or a bot that's interactive, it depends on what you're trying to do
but i found that wrangling python-nostr to be compatible with the current version of python and making it just connect to relays and drop a message without having to spin up and tear down asyncio loops and what not, was more work than writing it from scratch, in this case 😀
Published at
2024-12-05 21:31:05Event JSON
{
"id": "1248edf78c6e1426484350d30d0a11264f48510f6403d26c1f4b2bee775e20ce",
"pubkey": "0aa39e5aef99a000a7bdb0b499158c92bc4aa20fb65931a52d055b5eb6dff738",
"created_at": 1733434265,
"kind": 1,
"tags": [
[
"e",
"7aaf164c933c7463db45f371e4da00b7e42c29231d7545ca7e47c44860d42032",
"wss://relay.primal.net/",
"root"
],
[
"e",
"a2b703961425cb69b794a5ebcea47a7e9a5db43cf305037a488ed53a51acb3a6",
"wss://relay.primal.net/",
"reply"
],
[
"p",
"800e0fe3d8638ce3f75a56ed865df9d96fc9d9cd2f75550df0d7f5c1d8468b0b",
"",
"mention"
],
[
"p",
"9579444852221038dcba34512257b66a1c6e5bdb4339b6794826d4024b3e4ce9",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "yes, it's such a simple protocol, and most libraries tend to be kinda over-designed-which is useful if you really want to make a full client, or a bot that's interactive, it depends on what you're trying to do\n\nbut i found that wrangling python-nostr to be compatible with the current version of python and making it just connect to relays and drop a message without having to spin up and tear down asyncio loops and what not, was more work than writing it from scratch, in this case 😀 \n",
"sig": "a7d52f820a706e13687d42b8264acfc9f2ce6d7be6b8cbdbd43d9c6a44f9d1e692e6c903d91ce2d5456276a32b379d941f30e43b3aaa6bc41ccef6051bbf6dae"
}