Skip to content

Command line client for Nostr. Based off fiatjaf/noscl but in Python

License

Notifications You must be signed in to change notification settings

PlebeiusGaragicus/nospy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NOTE: This is totally a work-in-progress. My goal is to bring this to feature parity with noscl but that may take awhile.

It works for now 🤷

nospy

A nostr command-line utility written in Python: NOStr PYthon

Fiatjaf's noscl is really cool, but I don't know Go. So, I'm doing things the hard way... I mean the fun way!

The article that inspired me: https://dergigi.com/2023/01/19/how-to-build-a-nostr-gm-bot/

Usage:

Usage:
  nospy version
  nospy setprivate <key_material> [--passphrase=<passphrase>]
  nospy public
  nospy private
  nospy publish [<content>] [--file=<file>]
  nospy follow <pubkey> [--name=<name>]
  nospy unfollow <pubkey>
  nospy following
  nospy getinfo <pubkey>
  nospy home
  nospy keygen [--12-words] [--passphrase=<passphrase>] [--noformat]
  nospy relay-add <url>
  nospy relay-remove [<url> | --all]
  nospy relays
  nospy users
  nospy upload <file>

nospy is now mult-user capable. User config files are stored in ~/.config/nospy/<username>.json. To use nospy with a user set the NOSPY_USER environment variable. If NOSPY_USER is not set, then the 'default' user will be used.

How to install

git clone https://github.com/PlebeiusGaragicus/nospy.git
cd nospy
pip install -r requirements.txt
pip install .

# verify install
which nospy
nospy version

Reference

About

Command line client for Nostr. Based off fiatjaf/noscl but in Python

Resources

License

Stars

Watchers

Forks