There are 3 repositories under trados-studio-automation topic.
A Trados Studio plugin that will allow you to use Python or other interpreter languages to process segments.
Source files of Trados Studio Interpreter plugin