Python Goodies

git-author-stats.py – Prints commit stats for a specific author in a git repository including number of commits, summary and per file information for the lines added, removed and changed. The code is over-engineered alright. Example usage: git-author-stats.py ivanz

regexp-mv.py – Like mv but allows for source and destination to be regexp such as regexp-mv.py “(*).txt” “\1.sub”. Supports recursive operations.

desinfect.py – Uses supplied regexp to recursively search and remove stuff from .php and .html files. I use this to clean my php/html if and when someone infects them with some code.

NOTE: I am not a professional Python developer and those scripts were developed purely for my own personal use whenever I needed to solve a specific problem.

  • Twitter
  • Facebook
  • FriendFeed
  • StumbleUpon
  • Digg
  • del.icio.us
  • Google Bookmarks
  • Reddit
  • Tumblr
  • PDF
  • Print
  • email
Rating: (No Ratings Yet)
Loading ... Loading ...
Comments
Published: Mar 20th, 2009 (Views: 59)
Categories: Coding
Tags:
blog comments powered by Disqus