EducationWarehouse NOSTR Messagebus
Project description
.
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 themonstr_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 yourtasks.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
Built Distribution
File details
Details for the file edwh_nostr_messagebus-0.4.0.tar.gz
.
File metadata
- Download URL: edwh_nostr_messagebus-0.4.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8713b3303111aebe2d256122533f02de388f75271e16a8840d8a56d25a480147 |
|
MD5 | 8f1f80b7bd493a26f918e647ec84cd44 |
|
BLAKE2b-256 | 7b04e74bec2dac37d138e9717430a94cf835f268c8f7a888e79353526746d120 |
File details
Details for the file edwh_nostr_messagebus-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: edwh_nostr_messagebus-0.4.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9983030183a32f1b8831a9986440e3b19ae61721213f35149880716c739e11c9 |
|
MD5 | c7b6a243b54fad076efff83bc144cdf0 |
|
BLAKE2b-256 | 5d4fdf57fbd9a07b8d1075622f03b18137f5a88a0e2449a4711bd762142c69b2 |