monty888 / monstr_terminal

some terminal apps for nostr using monstr, the monstr files are currently embedded for the time being, until monstr becomes a proper module if I can ever work out how...
MIT License
17 stars 8 forks source link

Enhancing Usability and Accessibility for New Developers in `mostr` #4

Closed remcoboerma closed 1 year ago

remcoboerma commented 1 year ago

I wanted to express my gratitude for the contribution the mostr library has made to the Python community. It's a remarkable library that has significantly enriched our development experience.

While exploring the library, I noticed that for new developers, especially those who are just starting to tinker with incoming nostr events, working with async implementations might pose a slight learning curve. To address this, I've taken the liberty of refining the event_view.py module to actually produce json output when instructed to do so. Working with json is pretty easy for a lot of starting developers and operators so that they can more easily grasp the underlying processes.

In the Linux environment, printing JSON to the console has become a standard practice for seamless interaction and continued work in separate processes. It's akin to the convenience offered by tools like jq, wc, and grep.

I believe that these enhancements will not only simplify the onboarding process for newcomers but also add a layer of accessibility for everyone. By providing clearer visibility into server operations, we hope to foster a more enjoyable experience for those looking to explore and experiment with the mostr protocol.

Thank you for considering this pull request. Your dedication to the open-source community is greatly appreciated.

monty888 commented 1 year ago

Thanks, this looks great. Yes that exactly how I'd imagined the raw json output might be used, unfortunetly I never actually tried it before. Once I've had chance to give this a test I'll merge it in.