>>> from grass.script import vector as grassv
>>> grassv.vector_db('newcondZ')
{1:
{'layer': '1', 'name': '', 'database':
'/Users/toto/grassdata/geol/moi/dbf/', 'driver': 'dbf', 'key':
'cat', 'table': 'newcondZ'}}
>>> grassv.vector_info_topo('newcondZ')
{'kernels':
0, 'lines': 0, 'centroids': 0, 'boundaries': 0, 'points': 533, 'faces':
0, 'primitives': 533, 'islands': 0, 'nodes': 533, 'map3d': 1, 'areas':
0}
>>> grassv.vector_columns('newcondZ')
{'int_3':
'INTEGER', 'int_2': 'INTEGER', 'int_1': 'INTEGER', 'cat': 'INTEGER',
'dbl_2': 'DOUBLE PRECISION', 'dbl_3': 'DOUBLE PRECISION', 'dbl_1':
'DOUBLE PRECISION', 'dbl_4': 'DOUBLE PRECISION'}
>>> grass.vector_db_select('newcondZ')['values'][2]
['2', '169097.19', '113891.51', '189.76', '192', '80', '1', '0.5']
>>>