notes-put utility

Command-line utility to write a note from stdin. Replaces the ad-hoc inline Python requests.put pattern.

Location: ~/bin/notes-put (executable, on PATH)

Usage

# From a JSON file
notes-put my/key < doc.json

# Inline
echo '{"title":"x","content":[]}' | notes-put my/key

# Heredoc with Python dict syntax (ast.literal_eval)
notes-put my/key <<'EOF'
{
    'title': 'My Note',
    'content': [{'para': ['hello']}]
}
EOF

Features

When to use

version 1  ·  created 2026-03-07