fagga/transmission-remote-cli — pull request #66 by xnomadbb (2012-05-19 09:01:04+00:00)
Title: Make RPC classes reusable

I'd love to use your Transmission and TransmissionRequest classes in another project, but there is one little thing which makes it impossible without copy/pasting the code elsewhere:

The file immediately attempts to read config files and connect when imported. This can be fixed by wrapping all the initialization code near the bottom with `if __name__ == '__main__':` or by splitting the initialization into a separate file called by another script. I think you're putting it all in one file so you can just slap it in /usr/local/bin or whereever without messing around with installing modules so I'm guessing you don't want to split it up.

Also, the module has an unimportable file name. This isn't a huge deal, as I can work around it with a symlink or `__import__('transmission-remote-cli')`, just a little annoyance.