1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
|
.. _make_qiime_py_file:
.. index:: make_qiime_py_file.py
*make_qiime_py_file.py* -- Create python file
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
**Description:**
This is a script which will add headers and footers to new python files
and make them executable.
**Usage:** :file:`make_qiime_py_file.py [options]`
**Input Arguments:**
.. note::
**[REQUIRED]**
-o, `-`-output_fp
The output filepath
**[OPTIONAL]**
-s, `-`-script
Pass if creating a script to include option parsing framework [default:False].
-t, `-`-test
Pass if creating a unit test file to include relevant information [default:False].
-a, `-`-author_name
The script author's (probably you) name to be included the header variables. This will typically need to be enclosed in quotes to handle spaces. [default:AUTHOR_NAME]
-e, `-`-author_email
The script author's (probably you) e-mail address to be included the header variables. [default:AUTHOR_EMAIL]
-c, `-`-copyright
The copyright information to be included in the header variables. [default:Copyright 2011, The QIIME project]
**Output:**
The results of this script is either a python script, test, or library file, depending on the input parameters.
**Example usage:**
Create a new script:
::
make_qiime_py_file.py -s -a "Greg Caporaso" -e gregcaporaso@gmail.com -o my_script.py
Create a new test file:
::
make_qiime_py_file.py -t -a "Greg Caporaso" -e gregcaporaso@gmail.com -o my_test.py
Create a basic file (e.g., for library code):
::
make_qiime_py_file.py -a "Greg Caporaso" -e gregcaporaso@gmail.com -o my_lib.py
|