Replying to Avatar Juraj

What is the best current Python Nostr client library?

https://github.com/holgern/pynostr

https://github.com/jeffthibault/python-nostr

Both had last commit two years ago, which is paleolithic in Nostr terms.

Nostr-SDK seems more recent, but it is bindings to Rust. And I hate Rust, which is computational marxism. But I might swallow it if I don't ever need to touch Rust code.

https://pypi.org/project/nostr-sdk/

Suggestions and tips? Am I missing something?

It's gonna a be this https://github.com/rust-nostr/nostr unfortunately. I've begun builds with one of those you linked, had to restart from scratch. More info here https://pypi.org/project/nostr-sdk/

I'm considering just doing shell calls to nak https://github.com/fiatjaf/nak and using it as a system library for my programs. Not sure if that's the best idea, but that's the reference implementation of nostr and is certain to contain everything I would need.

Reply to this note

Please Login to reply.

Discussion

Shell calls? That sounds horrible :)

Not near as bad as learning a pythonic API for a python library lol. Import os and know the program youre using.