My python dbf library doesn't support index files at this time.  If no other means of updating the .cdx index file is available, you'll need to rebuild the indices in the accounting program.
import dbf
open file
table = dbf.Table(str("/art_gr.dbf"))
open table
table.open(mode=dbf.READ_WRITE)
add data to table
table.append({'DENUMIRE': '2', 'COD': '3'})
open cdx file
index = dbf.Idx(filename='C:/SAGA C.3.0/salv_bd/0001/art_gr.cdx', table=table)
#how can i update the index with new data??
close table
table.close()
I want to update an existing .cdx file with data inserted in .dbf file
How to create .cdx file from .dbf file in pyhton?