-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate.py
More file actions
executable file
·49 lines (37 loc) · 1.94 KB
/
template.py
File metadata and controls
executable file
·49 lines (37 loc) · 1.94 KB
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
#!/usr/bin/env python
'''Docstring Summary Line, followed by a space.
Followed by the extended description of the module. This may include
special notes on structure and usage as well as include brief information
on the modules Classes, Functions and variables.
'''
import datetime as dt
from random import choice
__author__ = "Jessica Rush"
__copyright__ = "Copyright 2017, cyan red"
__credits__ = ["Scott Volk", "Someone Else"]
__license__ = "GPL"
__version__ = "1.0.1"
__maintainer__ = "Jessica Rush"
__email__ = "jesskrush@me.com"
__status__ = "Production"
print('template finished')
# Explanation: The above is a recommended example source code file header.
# The main things to note here:
# 1. The first line of each file should be #!/usr/bin/env python (or the path
# to wherever your installation is... see which python3 for your path).
# This makes it possible to run the file as a script invoking the
# interpreter implicitly, (basically, just type $ ./template.py in the
# command line instead of $ python3 template.py). Note that the file
# permissions need to allow for the file to be executeable. For example,
# the command $ sudo chmod 744 template.py, would give the file the
# permissions: -rwxr--r--
# 2. Next should be the docstring with a description. If the description is
# long, the first line should be a short summary that makes sense on its
# own, separated from the rest by a newline.
# 3. Third should be all the import statements. Standard library first, then
# third-party libraries, then your own modules.
# 4. OPTIONAL: Authorship information. Note that many feel this information
# should be kept out of the source file and kept in its own file(s) such
# as AUTHORS and LICENSE. Status should typically be one of "Prototype",
# "Development", or "Production". More information can be found here:
# http://epydoc.sourceforge.net/manual-fields.html#module-metadata-variables