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.4.0

Generate a key pair

 nostr key new
Private key: nsec18ty...2xz6
Public key: npub1rak...58cm

Transform a public key to hex format

 nostr key convert -i 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.4.0.tar.gz (35.9 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.4.0-py3-none-any.whl (23.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nostrpy-0.4.0.tar.gz
  • Upload date:
  • Size: 35.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nostrpy-0.4.0.tar.gz
Algorithm Hash digest
SHA256 26a744a639c695ed6bc8920133d99b3f9f9b3a51ed05c27a5d2fd33824698259
MD5 50f8cf2b976534ce04c0141dc60c572a
BLAKE2b-256 e0d17eb975bee8426a7aa8177216bf56e86cd089d7b9b58ea18caee9624f9bab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nostrpy-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 23.9 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a2d8f11e1b1a762e3b92af04851d3217128c12b03db1a8d6474923990cf29835
MD5 ddb45656d9b2e1515c92ceef03e5eb84
BLAKE2b-256 9f039acbbc11fec42319be1b779e1313f2b9d9cbaaaea55f13cf877238f73ffb

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