What is currently the best way to make a nostr bot written in Python?
Login to reply
Replies (20)
Nakamoto institute bot incomingπ???
Iβm not sure, but was planning on doing just that today. My assumption would be python-nostr @jeff
If I were to use python, I would do it with the rust nostr sdk


PyPI
nostr-sdk
Nostr protocol implementation, Relay, RelayPool, high-level client library, NWC client and more.
Snake oil
I would start with a main function.
Utilize Claude.ai as your coding assistant. Itβs quite helpful.
YES
#YESTR
I'm sure there's something better but here is my unmaintained fork of python-nostr that I use

GitHub
GitHub - callebtc/python-nostr: A Python library for Nostr
A Python library for Nostr. Contribute to callebtc/python-nostr development by creating an account on GitHub.
What is currently the best way to make a nostr bot written in Python?
View quoted note →
As has been suggested, the nostr-sdk package for examples check out
Introduction - Rust Nostr Book
Thanks for this
That's whats awesome about nostr, you can stil just write something from scratch
there's a 98 line python one over on the github.com/hivetalk/hivebot repo which uses rust nostr.
there were a ton of python nostr sdk's in 2023 and a lot of them lost maintainers them so i ended up using the rust nostr python pypy lib, they use ffi? and it just made it very simple for basic nostr sends. although i think they changed methods a bit so now my 98 line python nostr script needs to be updated.
asyncio is weird but once you get the hang of it, i find python is my 'no think' language where i just go to bang out shitty code really fast but it works :D :P
Introduction - Rust Nostr Book
Introduction - Rust Nostr Book
please tell me you're building the halving tracker on NOSTR
Thank you! I think this will be most helpful.
What makes the python FFI circuitous in your opinion?
phew i'm glad you said not always :D . cuz BDK now has ffi for python, kotlin, swift
It worked! note1stcdfrhrq886tsyzash3h4rjf5ewlkl085ym8sveta6x67ywa45sctjr6s
Well, I thought it did at least.