Markus Neteler c497e96cf7 scripts/parser: keywords -> keyword (old style remains accepted) (trunk, https://trac.osgeo.org/grass/changeset/63871) hace 10 años
..
README 94c7ab3817 add README, copy over SWIG examples from swig/python/examples/ (still need to be ported to ctypes) hace 14 años
m.distance.py c497e96cf7 scripts/parser: keywords -> keyword (old style remains accepted) (trunk, https://trac.osgeo.org/grass/changeset/63871) hace 10 años
raster_example_ctypes.py 65fbfc1d6d typo hace 13 años
vector_example_ctypes.py 5d42bd9178 ctypes: grass module renamed to gis (follow library naming conventions) hace 14 años

README

There are two ways of using Python to run GRASS commands:
(or you could mix them together)

- Module scripting using the grass python helper library and g.parser.
import grass.script as grass
For examples see scripts/ in the GRASS 7 source code.


- Module creation using hooks into the C library functions using ctypes.
The scripts in the doc/python/examples/ directory will describe this.
(Ctypes is standard in Python 2.5 and newer; replaces the SWIG
implementation in GRASS)


More details can be found in the GRASS Programmer's Manual.