๐ŸŒฟ appendlog v1.0.0 ยท MIT

Append timestamped entries under a stable marker in long shared files โ€” append-only, dedupe, zero dependencies.

The problem

Long shared files (plans, journals, state docs) edited by multiple actors break targeted edits: prose anchors get duplicated ("found 6 occurrences"), drift ("text not found"), and one bad edit can rewrite history. The fix is to make those files append-only: never touch existing content โ€” only insert a new entry right after a stable marker comment such as <!-- LOG -->.

Guarantees

Install (pip)

pip install appendlog @ git+https://mandrilly.com/git/appendlog.git

Usage

# insert "- **๐Ÿ—“๏ธ 22/09 01:30 โ€” done thing**" after <!-- LOG --> in plan.md
appendlog plan.md "done thing"

# custom marker / template / stamp
appendlog state.md "check ran clean" --marker '<!-- AUDIT -->' \
  --template '* [{stamp}] {text}' --stamp-format '%Y-%m-%d %H:%M'

appendlog plan.md "hello" --dry-run
appendlog plan.md "hello" --json

Python API: from appendlog.core import append_entry.

Exit codes

CodeMeaning
0inserted, duplicate (no-op), or dry-run
1error (file missing, marker missing, empty text)
2usage / invalid --now

Tests

python -m unittest tests -v    # 9 tests