GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
python.core Namespace Reference

Data Structures

class  Popen
 
class  ScriptError
 
class  KeyValue
 

Functions

def call
 
def decode
 
def make_command
 Return a list of strings suitable for use as the args parameter to Popen() or call(). More...
 
def start_command
 Returns a Popen object with the command created by make_command. More...
 
def run_command
 Passes all arguments to start_command(), then waits for the process to complete, returning its exit code. More...
 
def pipe_command
 Passes all arguments to start_command(), but also adds "stdout = PIPE". More...
 
def feed_command
 Passes all arguments to start_command(), but also adds "stdin = PIPE". More...
 
def read_command
 Passes all arguments to pipe_command, then waits for the process to complete, returning its stdout (i.e. More...
 
def parse_command
 Passes all arguments to read_command, then parses the output by parse_key_val(). More...
 
def write_command
 Passes all arguments to feed_command, with the string specified by the 'stdin' argument fed to the process' stdin. More...
 
def exec_command
 Interface to os.execvpe(), but with the make_command() interface. More...
 
def message
 Display a message using g.message More...
 
def debug
 Display a debugging message using g.message -d More...
 
def verbose
 Display a verbose message using g.message -v More...
 
def info
 Display an informational message using g.message -i More...
 
def percent
 Display a progress info message using g.message -p More...
 
def warning
 Display a warning message using g.message -w More...
 
def error
 Display an error message using g.message -e More...
 
def fatal
 Display an error message using g.message -e, then abort. More...
 
def set_raise_on_error
 Define behaviour on error (error() called) More...
 
def parser
 Interface to g.parser, intended to be run from the top-level, e.g. More...
 
def tempfile
 Returns the name of a temporary file, created with g.tempfile. More...
 
def tempdir
 Returns the name of a temporary dir, created with g.tempfile. More...
 
def parse_key_val
 Parse a string into a dictionary, where entries are separated by newlines and the key and value are separated by `sep' (default: `=') More...
 
def gisenv
 Returns the output from running g.gisenv (with no arguments), as a dictionary. More...
 
def locn_is_latlong
 Tests if location is lat/long. More...
 
def region
 Returns the output from running "g.region -gu", as a dictionary. More...
 
def region_env
 Returns region settings as a string which can used as GRASS_REGION environmental variable. More...
 
def use_temp_region
 Copies the current region to a temporary region with "g.region save=", then sets WIND_OVERRIDE to refer to that region. More...
 
def del_temp_region
 Unsets WIND_OVERRIDE and removes any region named by it. More...
 
def find_file
 Returns the output from running g.findfile as a dictionary. More...
 
def list_grouped
 List elements grouped by mapsets. More...
 
def list_pairs
 List of elements as tuples. More...
 
def list_strings
 List of elements as strings. More...
 
def mlist_strings
 List of elements as strings. More...
 
def mlist_pairs
 List of elements as pairs. More...
 
def mlist_grouped
 List of elements grouped by mapsets. More...
 
def parse_color
 Parses the string "val" as a GRASS colour, which can be either one of the named colours or an R:G:B tuple e.g. More...
 
def overwrite
 Return True if existing files may be overwritten. More...
 
def verbosity
 Return the verbosity level selected by GRASS_VERBOSE. More...
 
def basename
 various utilities, not specific to GRASS More...
 
def find_program
 Attempt to run a program, with optional arguments. More...
 
def try_remove
 Attempt to remove a file; no exception is generated if the attempt fails. More...
 
def try_rmdir
 Attempt to remove a directory; no exception is generated if the attempt fails. More...
 
def float_or_dms
 Convert DMS to float. More...
 
def mapsets
 List available mapsets. More...
 
def create_location
 Create new location. More...
 
def version
 Get GRASS version as dictionary. More...
 
def legal_name
 Checks if the string contains only allowed characters. More...
 

Variables

 PIPE = subprocess.PIPE
 
 STDOUT = subprocess.STDOUT
 
 raise_on_error = False
 
int debug_level = 0
 
list _popen_args
 
dictionary named_colors
 

Function Documentation

def python.core.basename (   path,
  ext = None 
)

various utilities, not specific to GRASS

Remove leading directory components and an optional extension from the specified path

Parameters
pathpath
extextension

Definition at line 955 of file core.py.

Referenced by python.core.parser().

def python.core.call (   args,
  kwargs 
)

Definition at line 71 of file core.py.

Referenced by N_alloc_les_callback_2d(), and N_alloc_les_callback_3d().

def python.core.create_location (   dbase,
  location,
  epsg = None,
  proj4 = None,
  filename = None,
  wkt = None,
  datum = None,
  datumtrans = None,
  desc = None 
)

Create new location.

Raise ScriptError on error.

Parameters
dbasepath to GRASS database
locationlocation name to create
epsgif given create new location based on EPSG code
proj4if given create new location based on Proj4 definition
filenameif given create new location based on georeferenced file
wktif given create new location based on WKT definition (path to PRJ file)
datumGRASS format datum code
datumtransdatum transformation parameters (used for epsg and proj4)
descdescription of the location (creates MYNAME file)

Definition at line 1069 of file core.py.

def python.core.debug (   msg,
  debug = 1 
)

Display a debugging message using g.message -d

Parameters
msgdebugging message to be displayed
debugdebug level (0-5)

Definition at line 324 of file core.py.

References python.core.run_command().

def python.core.decode (   string)
def python.core.del_temp_region ( )

Unsets WIND_OVERRIDE and removes any region named by it.

Definition at line 691 of file core.py.

References python.core.run_command().

def python.core.error (   msg)

Display an error message using g.message -e

Raise exception when on_error is 'raise'.

Parameters
msgerror message to be displayed

Definition at line 370 of file core.py.

References python.core.message().

Referenced by python.core.fatal().

def python.core.exec_command (   prog,
  flags = "",
  overwrite = False,
  quiet = False,
  verbose = False,
  env = None,
  kwargs 
)

Interface to os.execvpe(), but with the make_command() interface.

Parameters
progGRASS module
flagsflags to be used (given as a string)
overwriteTrue to enable overwriting the output (–o)
quietTrue to run quietly (–q)
verboseTrue to run verbosely (–v)
envdirectory with environmental variables
kwargsmodule's parameters

Definition at line 297 of file core.py.

References python.core.make_command().

def python.core.fatal (   msg)

Display an error message using g.message -e, then abort.

Parameters
msgerror message to be displayed

Definition at line 383 of file core.py.

References python.core.error().

Referenced by python.db.db_describe(), python.db.db_select(), python.raster.mapcalc(), and python.vector.vector_layer_db().

def python.core.feed_command (   args,
  kwargs 
)

Passes all arguments to start_command(), but also adds "stdin = PIPE".

Returns the Popen object.

Parameters
argslist of unnamed arguments (see start_command() for details)
kwargslist of named arguments (see start_command() for details)
Returns
Popen object

Definition at line 217 of file core.py.

References python.core.start_command().

Referenced by python.raster.mapcalc_start(), and python.core.write_command().

def python.core.find_file (   name,
  element = 'cell',
  mapset = None 
)

Returns the output from running g.findfile as a dictionary.

Example:

1 >>> result = grass.find_file('fields', element = 'vector')
2 >>> print result['fullname']
3 fields@PERMANENT
4 >>> print result['file']
5 /opt/grass-data/spearfish60/PERMANENT/vector/fields
Parameters
namefile name
elementelement type (default 'cell')
mapsetmapset name (default all mapsets in search path)
Returns
parsed output of g.findfile

Definition at line 701 of file core.py.

References python.core.parse_key_val(), and python.core.read_command().

def python.core.find_program (   pgm,
  args = [] 
)

Attempt to run a program, with optional arguments.

You must call the program in a way that will return a successful exit code. For GRASS modules this means you need to pass it some valid CLI option, like "--help". For other programs a common valid do-little option is "--version".

Example:

1 >>> grass.find_program('r.sun', ['help'])
2 True
3 >>> grass.find_program('gdalwarp', ['--version'])
4 True
Parameters
pgmprogram name
argslist of arguments
Returns
False if the attempt failed due to a missing executable or non-zero return code
True otherwise

Definition at line 972 of file core.py.

Referenced by ogc_services.WMSDialog.OnConnect().

def python.core.float_or_dms (   s)

Convert DMS to float.

Parameters
sDMS value
Returns
float value

Definition at line 1034 of file core.py.

Referenced by python.raster.raster_info().

def python.core.gisenv ( )

Returns the output from running g.gisenv (with no arguments), as a dictionary.

Example:

1 >>> env = grass.gisenv()
2 >>> print env['GISDBASE']
3 /opt/grass-data
Returns
list of GRASS variables

Definition at line 546 of file core.py.

References python.core.parse_key_val(), and python.core.read_command().

Referenced by python.raster.raster_history(), and python.core.region_env().

def python.core.info (   msg)

Display an informational message using g.message -i

Parameters
msginformational message to be displayed

Definition at line 339 of file core.py.

References python.core.message().

Referenced by MT_tree_info_new().

def python.core.legal_name (   s)

Checks if the string contains only allowed characters.

This is the Python implementation of G_legal_filename() function.

Note
It is not clear when to use this function.

Definition at line 1220 of file core.py.

def python.core.list_grouped (   type,
  check_search_path = True 
)

List elements grouped by mapsets.

Returns the output from running g.list, as a dictionary where the keys are mapset names and the values are lists of maps in that mapset. Example:

1 >>> grass.list_grouped('rast')['PERMANENT']
2 ['aspect', 'erosion1', 'quads', 'soils', 'strm.dist', ...
Parameters
typeelement type (rast, vect, rast3d, region, ...)
check_search_pathTrue to add mapsets for the search path with no found elements
Returns
directory of mapsets/elements

Definition at line 724 of file core.py.

References python.core.mapsets(), and python.core.read_command().

Referenced by python.core.list_pairs().

def python.core.list_pairs (   type)

List of elements as tuples.

Returns the output from running g.list, as a list of (map, mapset) pairs. Example:

1 >>> grass.list_pairs('rast')
2 [('aspect', 'PERMANENT'), ('erosion1', 'PERMANENT'), ('quads', 'PERMANENT'), ...
Parameters
typeelement type (rast, vect, rast3d, region, ...)
Returns
list of tuples (map, mapset)

Definition at line 771 of file core.py.

References python.core.list_grouped().

Referenced by python.core.list_strings().

def python.core.list_strings (   type)

List of elements as strings.

Returns the output from running g.list, as a list of qualified names. Example:

1 >>> grass.list_strings('rast')
2 ['aspect@PERMANENT', 'erosion1@PERMANENT', 'quads@PERMANENT', 'soils@PERMANENT', ...
Parameters
typeelement type
Returns
list of strings ('map@mapset')

Definition at line 789 of file core.py.

References python.core.list_pairs().

def python.core.locn_is_latlong ( )

Tests if location is lat/long.

Value is obtained by checking the "g.region -pu" projection code.

Returns
True for a lat/long region, False otherwise

Definition at line 561 of file core.py.

References python.core.parse_key_val(), python.core.read_command(), and utils.split().

def python.core.make_command (   prog,
  flags = "",
  overwrite = False,
  quiet = False,
  verbose = False,
  options 
)

Return a list of strings suitable for use as the args parameter to Popen() or call().

Example:

1 >>> grass.make_command("g.message", flags = 'w', message = 'this is a warning')
2 ['g.message', '-w', 'message=this is a warning']
Parameters
progGRASS module
flagsflags to be used (given as a string)
overwriteTrue to enable overwriting the output (–o)
quietTrue to run quietly (–q)
verboseTrue to run verbosely (–v)
optionsmodule's parameters
Returns
list of arguments

Definition at line 97 of file core.py.

Referenced by python.core.exec_command(), and python.core.start_command().

def python.core.mapsets (   search_path = False)

List available mapsets.

Parameters
searchPatchTrue to list mapsets only in search path
Returns
list of mapsets

Definition at line 1045 of file core.py.

Referenced by G_available_mapsets(), python.core.list_grouped(), and list_mapsets().

def python.core.message (   msg,
  flag = None 
)

Display a message using g.message

Parameters
msgmessage to be displayed
flagflags (given as string)

Definition at line 316 of file core.py.

References python.core.run_command().

Referenced by python.core.error(), python.core.info(), python.core.percent(), python.core.verbose(), and python.core.warning().

def python.core.mlist_grouped (   type,
  pattern = None,
  check_search_path = True,
  flag = '' 
)

List of elements grouped by mapsets.

Returns the output from running g.mlist, as a dictionary where the keys are mapset names and the values are lists of maps in that mapset. Example:

1 >>> grass.mlist_grouped('rast', pattern='r*')['PERMANENT']
2 ['railroads', 'roads', 'rstrct.areas', 'rushmore']
Parameters
typeelement type (rast, vect, rast3d, region, ...)
patternpattern string
check_search_pathTrue to add mapsets for the search path with no found elements
flagpattern type: 'r' (basic regexp), 'e' (extended regexp), or '' (glob pattern)
Returns
directory of mapsets/elements

Definition at line 847 of file core.py.

def python.core.mlist_pairs (   type,
  pattern = None,
  mapset = None,
  flag = '' 
)

List of elements as pairs.

Returns the output from running g.mlist, as a list of (name, mapset) pairs

Parameters
typeelement type (rast, vect, rast3d, region, ...)
patternpattern string
mapsetmapset name (if not given use search path)
flagpattern type: 'r' (basic regexp), 'e' (extended regexp), or '' (glob pattern)
Returns
list of elements

Definition at line 832 of file core.py.

def python.core.mlist_strings (   type,
  pattern = None,
  mapset = None,
  flag = '' 
)

List of elements as strings.

Returns the output from running g.mlist, as a list of qualified names.

Parameters
typeelement type (rast, vect, rast3d, region, ...)
patternpattern string
mapsetmapset name (if not given use search path)
flagpattern type: 'r' (basic regexp), 'e' (extended regexp), or '' (glob pattern)
Returns
list of elements

Definition at line 808 of file core.py.

def python.core.overwrite ( )

Return True if existing files may be overwritten.

Definition at line 936 of file core.py.

def python.core.parse_color (   val,
  dflt = None 
)

Parses the string "val" as a GRASS colour, which can be either one of the named colours or an R:G:B tuple e.g.

255:255:255. Returns an (r,g,b) triple whose components are floating point values between 0 and 1. Example:

1 >>> grass.parse_color("red")
2 (1.0, 0.0, 0.0)
3 >>> grass.parse_color("255:0:0")
4 (1.0, 0.0, 0.0)
Parameters
valcolor value
dfltdefault color value
Returns
tuple RGB

Definition at line 907 of file core.py.

def python.core.parse_command (   args,
  kwargs 
)

Passes all arguments to read_command, then parses the output by parse_key_val().

Parsing function can be optionally given by parse parameter including its arguments, e.g.

1 parse_command(..., parse = (grass.parse_key_val, { 'sep' : ':' }))

or you can simply define delimiter

1 parse_command(..., delimiter = ':')
Parameters
argslist of unnamed arguments (see start_command() for details)
kwargslist of named arguments (see start_command() for details)
Returns
parsed module output

Definition at line 241 of file core.py.

References python.core.read_command(), and dialogs.type.

def python.core.parse_key_val (   s,
  sep = '=',
  dflt = None,
  val_type = None,
  vsep = None 
)

Parse a string into a dictionary, where entries are separated by newlines and the key and value are separated by `sep' (default: `=')

Parameters
sstring to be parsed
sepkey/value separator
dfltdefault value to be used
val_typevalue type (None for no cast)
vsepvertical separator (default os.linesep)
Returns
parsed input (dictionary of keys/values)

Definition at line 505 of file core.py.

Referenced by python.db.db_connection(), python.core.find_file(), python.core.gisenv(), python.core.locn_is_latlong(), python.raster.raster_info(), python.core.region(), python.core.region_env(), and python.vector.vector_info_topo().

def python.core.parser ( )

Interface to g.parser, intended to be run from the top-level, e.g.

:

1 if __name__ == "__main__":
2  options, flags = grass.parser()
3  main()

Thereafter, the global variables "options" and "flags" will be dictionaries containing option/flag values, keyed by lower-case option/flag names. The values in "options" are strings, those in "flags" are Python booleans.

Definition at line 428 of file core.py.

References python.core.basename().

Referenced by python.task.parse_interface().

def python.core.percent (   i,
  n,
  s 
)

Display a progress info message using g.message -p

1 message(_("Percent complete..."))
2 n = 100
3 for i in range(n):
4  percent(i, n, 1)
5 percent(1, 1, 1)
Parameters
icurrent item
ntotal number of items
sincrement size

Definition at line 346 of file core.py.

References python.core.message().

def python.core.pipe_command (   args,
  kwargs 
)

Passes all arguments to start_command(), but also adds "stdout = PIPE".

Returns the Popen object.

1 >>> p = grass.pipe_command("g.gisenv")
2 >>> print p
3 <subprocess.Popen object at 0xb7c12f6c>
4 >>> print p.communicate()[0]
5 GISDBASE='/opt/grass-data';
6 LOCATION_NAME='spearfish60';
7 MAPSET='glynn';
8 GRASS_DB_ENCODING='ascii';
9 GRASS_GUI='text';
10 MONITOR='x0';
Parameters
argslist of unnamed arguments (see start_command() for details)
kwargslist of named arguments (see start_command() for details)
Returns
Popen object

Definition at line 192 of file core.py.

References python.core.start_command().

Referenced by python.core.read_command().

def python.core.read_command (   args,
  kwargs 
)

Passes all arguments to pipe_command, then waits for the process to complete, returning its stdout (i.e.

similar to shell backticks).

Parameters
argslist of unnamed arguments (see start_command() for details)
kwargslist of named arguments (see start_command() for details)
Returns
stdout

Definition at line 229 of file core.py.

References python.core.pipe_command().

Referenced by python.db.db_connection(), python.db.db_describe(), python.core.find_file(), python.core.gisenv(), python.core.list_grouped(), python.core.locn_is_latlong(), python.core.parse_command(), python.raster.raster_info(), python.core.region(), python.core.region_env(), python.core.tempdir(), python.core.tempfile(), python.vector.vector_columns(), python.vector.vector_db(), python.vector.vector_db_select(), python.vector.vector_info_topo(), and python.vector.vector_what().

def python.core.region (   region3d = False)

Returns the output from running "g.region -gu", as a dictionary.

Example:

Parameters
region3dTrue to get 3D region
1 >>> region = grass.region()
2 >>> [region[key] for key in "nsew"]
3 [228500.0, 215000.0, 645000.0, 630000.0]
4 >>> (region['nsres'], region['ewres'])
5 (10.0, 10.0)
Returns
dictionary of region values

Definition at line 576 of file core.py.

References python.core.parse_key_val(), python.core.read_command(), and python.core.region_env().

def python.core.region_env (   region3d = False,
  kwargs 
)

Returns region settings as a string which can used as GRASS_REGION environmental variable.

If no 'kwargs' are given then the current region is used. Note that this function doesn't modify the current region!

See also use_temp_region() for alternative method how to define temporary region used for raster-based computation.

Parameters
region3dTrue to get 3D region
kwargsg.region's parameters like 'rast', 'vect' or 'region'
1 os.environ['GRASS_REGION'] = grass.region_env(region = 'detail')
2 grass.mapcalc('map = 1', overwrite = True)
3 os.environ.pop('GRASS_REGION')
Returns
string with region values
empty string on error

Definition at line 607 of file core.py.

References python.core.gisenv(), python.core.parse_key_val(), and python.core.read_command().

Referenced by python.core.region().

def python.core.run_command (   args,
  kwargs 
)

Passes all arguments to start_command(), then waits for the process to complete, returning its exit code.

Similar to subprocess.call(), but with the make_command() interface.

Parameters
argslist of unnamed arguments (see start_command() for details)
kwargslist of named arguments (see start_command() for details)
Returns
exit code (0 for success)

Definition at line 179 of file core.py.

References python.core.start_command().

Referenced by python.db.db_select(), python.core.debug(), python.core.del_temp_region(), python.core.message(), python.raster.raster_history(), python.core.use_temp_region(), and python.vector.vector_history().

def python.core.set_raise_on_error (   raise_exp = True)

Define behaviour on error (error() called)

Parameters
raise_expTrue to raise ScriptError instead of calling error()
Returns
current status

Definition at line 391 of file core.py.

def python.core.start_command (   prog,
  flags = "",
  overwrite = False,
  quiet = False,
  verbose = False,
  kwargs 
)

Returns a Popen object with the command created by make_command.

Accepts any of the arguments which Popen() accepts apart from "args" and "shell".

1 >>> p = grass.start_command("g.gisenv", stdout = subprocess.PIPE)
2 >>> print p
3 <subprocess.Popen object at 0xb7c12f6c>
4 >>> print p.communicate()[0]
5 GISDBASE='/opt/grass-data';
6 LOCATION_NAME='spearfish60';
7 MAPSET='glynn';
8 GRASS_DB_ENCODING='ascii';
9 GRASS_GUI='text';
10 MONITOR='x0';
Parameters
progGRASS module
flagsflags to be used (given as a string)
overwriteTrue to enable overwriting the output (–o)
quietTrue to run quietly (–q)
verboseTrue to run verbosely (–v)
kwargsmodule's parameters
Returns
Popen object

Definition at line 133 of file core.py.

References python.core.make_command().

Referenced by python.core.feed_command(), python.core.pipe_command(), and python.core.run_command().

def python.core.tempdir ( )

Returns the name of a temporary dir, created with g.tempfile.

Definition at line 474 of file core.py.

References python.core.read_command(), and python.core.try_remove().

def python.core.tempfile ( )

Returns the name of a temporary file, created with g.tempfile.

Definition at line 470 of file core.py.

References python.core.read_command().

def python.core.try_remove (   path)

Attempt to remove a file; no exception is generated if the attempt fails.

Parameters
pathpath to file to remove

Definition at line 1010 of file core.py.

Referenced by python.db.db_select(), and python.core.tempdir().

def python.core.try_rmdir (   path)

Attempt to remove a directory; no exception is generated if the attempt fails.

Parameters
pathpath to directory to remove

Definition at line 1023 of file core.py.

def python.core.use_temp_region ( )

Copies the current region to a temporary region with "g.region save=", then sets WIND_OVERRIDE to refer to that region.

Installs an atexit handler to delete the temporary region upon termination.

Definition at line 681 of file core.py.

References python.core.run_command().

def python.core.verbose (   msg)

Display a verbose message using g.message -v

Parameters
msgverbose message to be displayed

Definition at line 332 of file core.py.

References python.core.message().

def python.core.verbosity ( )

Return the verbosity level selected by GRASS_VERBOSE.

Definition at line 943 of file core.py.

def python.core.version ( )

Get GRASS version as dictionary.

1 print version()
2 
3 {'date': '2011', 'libgis_date': '2011-02-26 21:31:24 +0100 (Sat, 26 Feb 2011)',
4 'version': '6.5.svn', 'libgis_revision': '45467', 'revision': '47305'}

Definition at line 1199 of file core.py.

Referenced by main().

def python.core.warning (   msg)

Display a warning message using g.message -w

Parameters
msgwarning message to be displayed

Definition at line 363 of file core.py.

References python.core.message().

Referenced by python.raster.raster_history().

def python.core.write_command (   args,
  kwargs 
)

Passes all arguments to feed_command, with the string specified by the 'stdin' argument fed to the process' stdin.

Parameters
argslist of unnamed arguments (see start_command() for details)
kwargslist of named arguments (see start_command() for details)
Returns
return code

Definition at line 282 of file core.py.

References python.core.feed_command().

Referenced by python.raster.mapcalc().

Variable Documentation

list python.core._popen_args
Initial value:
1 = ["bufsize", "executable", "stdin", "stdout", "stderr",
2  "preexec_fn", "close_fds", "cwd", "env",
3  "universal_newlines", "startupinfo", "creationflags"]

Definition at line 76 of file core.py.

tuple python.core.debug_level = 0

Definition at line 69 of file core.py.

Referenced by dig_angle_next_line(), dig_build_area_with_line(), and Vect_select_areas_by_box().

dictionary python.core.named_colors
Initial value:
1 = {
2  "white": (1.00, 1.00, 1.00),
3  "black": (0.00, 0.00, 0.00),
4  "red": (1.00, 0.00, 0.00),
5  "green": (0.00, 1.00, 0.00),
6  "blue": (0.00, 0.00, 1.00),
7  "yellow": (1.00, 1.00, 0.00),
8  "magenta": (1.00, 0.00, 1.00),
9  "cyan": (0.00, 1.00, 1.00),
10  "aqua": (0.00, 0.75, 0.75),
11  "grey": (0.75, 0.75, 0.75),
12  "gray": (0.75, 0.75, 0.75),
13  "orange": (1.00, 0.50, 0.00),
14  "brown": (0.75, 0.50, 0.25),
15  "purple": (0.50, 0.00, 1.00),
16  "violet": (0.50, 0.00, 1.00),
17  "indigo": (0.00, 0.50, 1.00)}

Definition at line 889 of file core.py.

python.core.PIPE = subprocess.PIPE

Definition at line 58 of file core.py.

python.core.raise_on_error = False

Definition at line 68 of file core.py.

python.core.STDOUT = subprocess.STDOUT

Definition at line 59 of file core.py.