Skip to content

Instantly share code, notes, and snippets.

@jfrfonseca
jfrfonseca / Python Arguments Parser Template
Created July 15, 2015 16:50
Python Command Line Arguments Parser Template
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Options Parsing Template
This script presents most of the options and ways to use the optparse library,
structured for easy use in a python application.
"""
# -----------------------------------------------------------------------------
# Copyright (c) 2015 José Fonseca.
#
@jfrfonseca
jfrfonseca / Python Module Template
Last active May 1, 2024 08:26
Python Basic "Empty" Module File Template, with separations and PEP-8 conformity
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""A one-line description or name.
A longer description that spans multiple lines. Explain the purpose of the
file and provide a short list of the key classes/functions it contains. This
is the docstring shown when some does 'import foo;foo?' in IPython, so it
should be reasonably useful and informative.
"""
# -----------------------------------------------------------------------------