wrapper api / proxying third party exception?

2015-12-15 Thread Benjamin Risher
Ok, here's my issue. I have a plugin framework I wrote that relies on a third party library that I can't change. As a part of that framework, I wrote a small stub library to proxy calls to the third party library, so that if their api ever changes, plugins written against the stub won't have t

remote control of a cmd.Cmd() loop (help requested)

2015-05-22 Thread Benjamin Risher
First, the snippet provided is a contrived example of a much larger program. http://pastebin.com/xRqBE5BY (written in python3 with access to 3.4 if necessary) The goal: To connect to a listening socket and send commands to the cmd.Cmd() loop running, then show the output to both stdout and the

remote control of a cmd.Cmd() loop (help requested)

2015-05-22 Thread Benjamin Risher
First, the snippet provided is a contrived example of a much larger program. http://pastebin.com/xRqBE5BY (written in python3 with access to 3.4 if necessary) The goal: To connect to a listening socket and send commands to the cmd.Cmd() loop running, then show the output to both stdout and t

Is cmd.Cmd.cmdloop() integration with asyncio server possible?

2014-12-09 Thread Benjamin Risher
I'm working on an asyncio server project. I'd also like to have a cmd.Cmd style command loop interface for spawning instances of the server. As far as I've seen, running an asyncio server requires ... loop.run_forever() ... And cmd.Cmd.cmdloop() is a blocking loop, so I'm not able to call the

Is cmd.Cmd.cmdloop() integration with asyncio server possible?

2014-12-08 Thread Benjamin Risher
I'm working on an asyncio server project. I'd also like to have a cmd.Cmd style command loop interface for spawning instances of the server. As far as I've seen, running an asyncio server requires ... loop.run_forever() ... And cmd.Cmd.cmdloop() is a blocking loop, so I'm not able to call the

Re: Asyncio problem, looking for advice.

2014-11-28 Thread Benjamin Risher
On Friday, November 28, 2014 6:12:20 AM UTC-6, Akira Li wrote: > Benjamin Risher writes: > > > Hello all, > > > > I'm working on a project to learn asyncio and network programming. What > > I'm trying to do is forward a connection from myself t

Asyncio problem, looking for advice.

2014-11-27 Thread Benjamin Risher
Hello all, I'm working on a project to learn asyncio and network programming. What I'm trying to do is forward a connection from myself to another machine. Kind of like an asynchronous python implementation of fpipe. In a nutshell: 1 --> start a server listening on localhost 2 --> connect

Re: Basic asyncio usage

2014-11-25 Thread Benjamin Risher
On Monday, November 24, 2014 10:26:42 AM UTC-6, Marko Rauhamaa wrote: > Benjamin Risher : > > > I was wondering if you ever made progress with your asyncio project. > > I'm currently digging around for examples and reference material and > > came across your post. >

Re: Basic asyncio usage

2014-11-24 Thread Benjamin Risher
On Wednesday, March 26, 2014 6:35:31 AM UTC-5, Piotr HusiatyƄski wrote: > Hi, > I have posted the same question to python-tutor list *, but I'm trying > my luck here as advised. > > I'm trying to get more familiar with asyncio library. Using python > 3.4, I wrote simple echo server (see attachemen