Home > python-textmate-template

python-textmate-template

Python-textmate-template is a project mainly written in Python, it's free.

A template for starting a new python script in textmate.

python-textmate-template

by Fitzgerald Steele, Jr.

python-textmate-template is a starter template file that helps helps you:

  • Follow the Pythonista style
  • Parse some command line arguments – usually an input file
  • Enable logging (either file based, or to the console)

It is based on a blog post I wrote back in the day.

Installation

  1. Select Bundles > Bundle Editor > Show Bundle Editor
  2. Select and Open the Python Bundle
  3. Find the Python Bundle Templates
  4. Copy one into a new Template. Give it a sensible name
  5. Replace the template.py text the code from this repo

Even if you don’t use Textmate, you can still use this to quickstart your own python modules. Just remove/replace the $TM_ variables

Previous:HerokuStaticApp