Skip to main content

Python CLI for Nostr

Project description

nostrpy

CI/CD codecov CircleCI

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nostrpy-0.2.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file nostrpy-0.2.0.tar.gz.

File metadata

  • Download URL: nostrpy-0.2.0.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

Hashes for nostrpy-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a5368b5b047ff20d4da88f0b191f9c677fce310e2edefd9b9a451263ea2b65fd
MD5 c930688fcbd65d58f26cfd903217004b
BLAKE2b-256 922db9b0ae9b5cb07339fe541f0afca2c5b24cd9f3c070306cb5f1574f30e256

See more details on using hashes here.

File details

Details for the file nostrpy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nostrpy-0.2.0-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

Hashes for nostrpy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a17cedbff30e1e06146d8df9bad5447be2f30b8f865a653236ba11dbb99369b
MD5 858928ce6bf1e3229e3ae465b630d666
BLAKE2b-256 ab04cf8d903cf1419af91a42bbca0060faf0653ce7a606dec6bb576767dc5c46

See more details on using hashes here.

Supported by

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