You can get help with 'talias -h' (toplevel help) or `talias $SUBCOMMAND -h` (help on a specific subcommand)
Technical details:
* tmsoup.alias.init() adds two tables to your TMSU database if they don't already exist: 'alias' and 'alias_tag'; the former just maps ids to names, the latter maps alias ids to tag+value pairs. This is completely reversible by simply executing the SQL 'DROP TABLE alias; DROP TABLE alias_tag;`, if you so choose.
* The API is fairly comprehensively demonstrated in tmsoup.alias.main(), which implements the CLI. Some reference to tmsoup.alias.parse_args() may be required. In general, the CLI is a pretty thin wrapper over the API: anything that is easy to do on CLI is also easy to do via API
* Other API exists (tmsoup.core). tmsoup.alias uses it, but I make no claims that it is stable. It currently includes functions to:
* get the correct database path (explicit path > TMSU_DB > default database path)
* validate tag/value/alias names against the rules described in the TMSU wiki
* Get a list of all tag names or tag values
* Get a dict mapping id:tagname or tagname:id
* Rename tags
* No shelling-out to TMSU is involved, only sqlite3 interaction.
Enjoy.