Bas Couwenberg a31838666e Fix SyntaxError issues with Python 3. (#549) il y a 5 ans
..
script 69be6c5f9a manual: comment out SVN Date tag (#200) il y a 5 ans
README 94c7ab3817 add README, copy over SWIG examples from swig/python/examples/ (still need to be ported to ctypes) il y a 14 ans
m.distance.py a31838666e Fix SyntaxError issues with Python 3. (#549) il y a 5 ans
raster_example_ctypes.py a31838666e Fix SyntaxError issues with Python 3. (#549) il y a 5 ans
vector_example_ctypes.py a31838666e Fix SyntaxError issues with Python 3. (#549) il y a 5 ans

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.