Python CLI for Nostr
Project description
nostrpy
| CI/CD |
CLI for Nostr
Installation
❯ pip install nostrpy
Usage
Show nostr version
❯ nostr --version
nostr, version 0.0.3.dev5+g649c474.d20230212
Generate a key pair
❯ nostr key create
Private key: nsec18ty...2xz6
Public key: npub1rak...58cm
Transform a public key to hex format
❯ nostr key npub-to-hex --pub-key npub1rak...58cm
npub: npub1rak...58cm
hex: 1f6cada4...449d
Publish a message
❯ nostr message publish -s <the sender nsec key> -m "Hello, publishing a message through nostr CLI."
Send an encryped direct message
❯ nostr message send -s <the sender nsec key> -m "Hello, sending an encryped direct message" -p <the receiver npub key>
Receive message(s)
❯ nostr message receive -p <the npub key to receive the messages>
Hello, publishing a message through nostr CLI.
...
Development & Test
See the Test Suite README
Feel free to add issues, add PRs, or provide any feedback!
Credits
Repositories:
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
nostrpy-0.2.1.tar.gz
(26.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
nostrpy-0.2.1-py3-none-any.whl
(19.8 kB
view details)
File details
Details for the file nostrpy-0.2.1.tar.gz.
File metadata
- Download URL: nostrpy-0.2.1.tar.gz
- Upload date:
- Size: 26.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
443e8c402f3a0f9167d5e924315a7091c71965eaba87a8d129c8fc02d0fd6bf6
|
|
| MD5 |
277efa9defa3dc6c2de691b50dafe82b
|
|
| BLAKE2b-256 |
a16a915d9e4eaa6b866a8b997145af9ed36e021bd89b15b8fae96308949adebd
|
File details
Details for the file nostrpy-0.2.1-py3-none-any.whl.
File metadata
- Download URL: nostrpy-0.2.1-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fff78a5e96d283005d527d56c165136680fd1d8f0876fcd45576f0a98667687
|
|
| MD5 |
7a381daa918eaff475019f3b9908e6f6
|
|
| BLAKE2b-256 |
2e376a92b39b0b35353781c948cfed50476618f95eb26221d4254379a4269ffe
|