Suggest design to accomodate non-unix platforms ?

Richard Shea shearichard at gmail.com
Wed Apr 18 10:02:22 EDT 2012


On Apr 19, 1:56 am, Irmen de Jong <irmen.NOS... at xs4all.nl> wrote:
> On 18-4-2012 15:35, Richard Shea wrote:
>
> > ... which I think would work and be sufficiently flexible to deal with
> > alternatives to putty.exe but is there a more established (...
> > better !) way of doing this stuff ?
>
> Perhaps install Cygwin and use its ssh.exe?
> Or use the paramiko library? (which, I believe, implements SSH directly)
>
> Irmen

OK I didn't know about Paramiko, that looks good - I will investigate.
I didn't want to go to as far as Cygwin because it's a bit much to
make that a requirement when installing a library.

More generally though I'd be interested to see patterns which would
allow a plugin alternative to be used for a system utility on which a
library is dependent.

I've realised that my example isn't much good because the values in
the args list would in fact have to equate to the variables already in
place within the relevant function - it's pretty late where I am so I
probably shouldn't be trying to think up new ideas but I'd be
interested to hear from others about how they might do this.



More information about the Python-list mailing list