5 from configparser ConfigParser
7 config = ConfigParser()
8 config.read('.taguette_gdocs')
10 ## this is project ID from the configuration
11 project_id = int(config['General']['taguette_project_id'])
12 taguette_database_file = config['General']['taguette_database_file']
15 con = sqlite3.connect(taguette_database_file)
18 sql_stmt_get = "SELECT id, path, description FROM tags WHERE project_id = ?"
19 cur.execute(sql_stmt_get, (project_id,))
26 tag_id, path, description = row
28 m = re.match(r'^(.+)\.(.*)$', path)
36 print("\t".join([str(tag_id), axial, tag, description]))