Since in the 2006 GRASS developers start to adopt python for the new GUI, python becoming more and more important and developers plan to convert all the bash script in to python for the next major release GRASS 7.
pygrass
want to improve integration between GRASS and python, make the use of python under GRASS more consistent with the language itself and make the GRASS scripting and programming activity easier and more natural to the final users.
This project has been funded with support from the google Summer of Code 2012.
It is possible to download pygrass
from the dowload <> page of the website <>, or download directly cloning the repository:
$ git clone https://code.google.com/p/pygrass/
Use setup.py
possibly inside a virtualenv <http://pypi.python.org/pypi/virtualenv/>:
$ python setup.py install
To read the docs locally, it is necessary to change directory and run the make command to produce the output (html, pdf, epub).
$ cd docs $ make html
Then, direct your browser to _build/html/index.html
.
Or read them online at <http://www.ing.unitn.it/~zambelli/projects/pygrass//>.
To run the tests with the interpreter available as python
, use:
make test
If you want to use a different interpreter, e.g. python3
, use:
PYTHON=python3 make test
Send wishes, comments, patches, etc. to <grass-dev@lists.osgeo.org>.
I you find any issue please open a new issue and/or write to the grass-dev mailing list.
pygrass
is made available by Pietro Zambelli during the
Google Summer of Code 2012.
Mentor of the project is Sören Gebbert. Co-Mentors are:
- Martin Landa;
- Markus Metz;
- Markus Netler;
- Luca Delucchi.