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.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

edwh_nostr_messagebus-0.4.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file edwh_nostr_messagebus-0.4.0.tar.gz.

File metadata

File hashes

Hashes for edwh_nostr_messagebus-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8713b3303111aebe2d256122533f02de388f75271e16a8840d8a56d25a480147
MD5 8f1f80b7bd493a26f918e647ec84cd44
BLAKE2b-256 7b04e74bec2dac37d138e9717430a94cf835f268c8f7a888e79353526746d120

See more details on using hashes here.

File details

Details for the file edwh_nostr_messagebus-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for edwh_nostr_messagebus-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9983030183a32f1b8831a9986440e3b19ae61721213f35149880716c739e11c9
MD5 c7b6a243b54fad076efff83bc144cdf0
BLAKE2b-256 5d4fdf57fbd9a07b8d1075622f03b18137f5a88a0e2449a4711bd762142c69b2

See more details on using hashes here.

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