Skip to main content

EducationWarehouse NOSTR Messagebus

Project description

.

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install edwh-nostr-messagebus 

There is an example folder that you can view on github with a helpful tasks.py demo to work with this library.

Usage

  • Run python3 ./run_relay --port 8888 from the monstr_terminal package to have local relay
  • chdir to the examples folder (there is a tasks.py file there)
  • Run invoke setup before anything else, in this folder, or wherever you create your tasks.py
  • Run invoke camelcaser -vv to enable the example camelcaser bot
  • Run invoke connect -vvv to watch debug output from several read-only message dumping handlers
  • Run invoke new --gidname "abc:here is my test" --gidname "def:And another" --key edwh to create 2 messages for new items

The first message from the new command will result in a trigger of the camelcaser since it's triggered by not camelcased names. The second message is "properly" formatted, and will not trigger it. In the debug view you can see there are extra tags on the newly created message for the same gid, and an updated name attribute.

Basically, this is alot of what this entire project is all about.

License

- is distributed under the terms of the MIT license.

Packaging

Make sure your commit messages are semantic.

  • semantic-release publish; hatch build -c ; hatch publish

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edwh_nostr_messagebus-0.4.1.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

edwh_nostr_messagebus-0.4.1-py3-none-any.whl (7.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page