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.
- Select Bundles > Bundle Editor > Show Bundle Editor
- Select and Open the Python Bundle
- Find the Python Bundle Templates
- Copy one into a new Template. Give it a sensible name
- 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