oniony / TMSU

TMSU lets you tags your files and then access them through a nifty virtual filesystem from any other application.
Other
2.03k stars 118 forks source link

Need python example on how to import the tags for a file from a sqlite database into TMSU #252

Closed ghost closed 2 years ago

ghost commented 2 years ago

I have for example a file /path/to/test_file with tags tag1 and tag2. I know how to get the tags from the sqlite database, but I don't know how to connect and write to the TMSU database. Or should I execute a subprocess to do this like subprocess.checkout(["tmsu", "tag", file, *tag_list])?

ghost commented 2 years ago

I managed to do a script.