-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
28 lines (24 loc) · 905 Bytes
/
README
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
Project layout:
/scripts - for command-line interface (or likes) stuff
/tests - for (unit) tests
/lib - for (C) libraries
/doc - for documentation (if such exists)
Code layout:
Complete guidelines can be found from:
http://www.python.org/dev/peps/pep-0008/
Long variable names are written as:
long_variable_name
Long function names are written as:
def long_function_name(var_one, var_two)
Class names are written as:
class MyClass
Imports are done in separate lines
No whitespaces are alloewd before comma, semicolon or colon
Constants are written as CONSTANT or LONG_CONSTANT
Running the build script:
One must run the build script 'setup.py' in the /scripts folder
to make a windows executable out of the source code.
To run the build script execute 'python setup.py build'
in desired console editor.
Sample project can be found at:
https://github.com/kennethreitz/samplemod