Skip to main content

Strip personal annotations from code before committing

Project description

GhostNotes

Version: 1.0.0 | Last Updated: April 12, 2026

A Git tool that strips tagged comments before committing.


Installation

pip install ghostnotes

Then initialize in any git repo:

cd your-project
ghostnotes init

What it does

GhostNotes lets you leave personal notes in your code using a tag (default: GN:). Before every commit, it automatically strips them out so they never reach your repository.

x = some_function() # GN: this breaks when input is negative, fix later

This comment line gets stripped before the commit so it looks like:

x = some_function()

Your local file stays untouched.


Commands

Command Description
ghostnotes init Initialize GhostNotes in the current project
ghostnotes status Show all GhostNotes in the current project
ghostnotes set-tag --tag <tag> Change the default comment tag
ghostnotes add-lang --ext <.ext> --symb <symbol> Add support for a new language
ghostnotes pull Git pull that safely strips and re-applies your ghostnotes

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

ghostnotes-1.0.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

ghostnotes-1.0.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file ghostnotes-1.0.0.tar.gz.

File metadata

  • Download URL: ghostnotes-1.0.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ghostnotes-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0565a30af4bad2997916c1493a84ecb6ceace79624a9bcbb06bcdcfc6ba6fdfd
MD5 949ee6a71e2658d92f98f82919523262
BLAKE2b-256 1a3723c23d57361b7aeb11e8c61b4c755675c9bbf5c2c4a33be77a5c1870f9f6

See more details on using hashes here.

File details

Details for the file ghostnotes-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ghostnotes-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for ghostnotes-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4fb669aa2b2d6b17388d6f8f75c769e8b5ec19eb0c54dc8446c1b8f379b8a194
MD5 458a2b450f4358e3b8101fab25186aa3
BLAKE2b-256 6851aa2539730bc3456ca64eb173bbf0cab9d67b6d5b9e02d4049bc7394860fd

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