README 553 B

123456789101112131415161718
  1. There are two ways of using Python to run GRASS commands:
  2. (or you could mix them together)
  3. - Module scripting using the grass python helper library and g.parser.
  4. import grass.script as gs
  5. For examples see scripts/ in the GRASS 7 source code.
  6. - Module creation using hooks into the C library functions using ctypes.
  7. The scripts in the doc/python/examples/ directory will describe this.
  8. (Ctypes is standard in Python 2.5 and newer; replaces the SWIG
  9. implementation in GRASS)
  10. More details can be found in the GRASS Programmer's Manual.