[Twisted-Python] fastcgi client

2018-12-04 Thread Kevin Mcintyre
Saw this... https://twistedmatrix.com/documents/8.2.0/api/twisted.web2.channel.fastcgi.html Was wondering if there's a fastcgi client out there for twisted? Thanks, ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com

Re: [Twisted-Python] catching twisted pyqt segmentation fault

2017-02-26 Thread Kevin Mcintyre
for detecting segfaults? I'm thinking just to monitor /var/log/syslog On Sat, Feb 25, 2017 at 11:59 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > > On Feb 25, 2017, at 4:41 PM, Kevin Mcintyre <kebi...@gmail.com> wrote: > > > > I have a long r

[Twisted-Python] catching twisted pyqt segmentation fault

2017-02-25 Thread Kevin Mcintyre
I have a long running twisted pyqt process which occasionally throws a Received signal 11. I believe it's in the underlying QtWebEngineView since the twisted process continues to run. Whatever the reason I would like to figure out a way to catch this and stop the reactor either in process, or by

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Kevin Mcintyre
"It is shaped the same. The reason you're seeing the error is due to the issue I pointed out above." Just to be clear you mean that proxies can reshape the call in flight? On Mon, Jan 30, 2017 at 6:01 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Jan 30,

Re: [Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Kevin Mcintyre
Thanks - that's exactly what I was looking for. *But note* when using FileBodyProducer(StringIO(json.dumps(~blah))) -- I still see a content-length in the request header as it's received by twisted. Am I correct to assume the request is agnostic...meaning it's shaped the same for twisted as it

[Twisted-Python] web client FileBodyProducer - transfer encoding

2017-01-30 Thread Kevin Mcintyre
hey all - quick question. Trying to understand FileBodyProducer as it pertains to POST. json_body = FileBodyProducer(StringIO(json.dumps({'key': 'value'}))) agent.request("POST", ~*uri*, Headers({'User-Agent': ['AkamaiTest']}), json_body) Does the agent chunk the POST body? Is this

Re: [Twisted-Python] web Resource question

2016-06-16 Thread Kevin Mcintyre
2016, at 05:16, Kevin Mcintyre <kebi...@gmail.com> wrote: > > > > > > what is child.server = self.server in Resource.putChild? > > > > shouldn't it be child.server = self? > > I don’t think so. The reference to the server is presumably intended t

[Twisted-Python] web Resource question

2016-06-15 Thread Kevin Mcintyre
what is child.server = self.server in Resource.putChild? shouldn't it be child.server = self? ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] on template processing

2015-12-26 Thread Kevin Mcintyre
1) Is template block processing done top to bottom sequentially? I've included example.py - it's interesting that by having a blocking call first the second request is blocked, but having the blocking call after a non-blocking call the second request is not. I would've thought it would behave as

Re: [Twisted-Python] asynchronous response

2015-12-17 Thread Kevin Mcintyre
holy moly - you're right! This fool will sleep so much better...a million thanks. On Thu, Dec 17, 2015 at 12:09 AM, Amber "Hawkie" Brown < hawk...@atleastfornow.net> wrote: > > > On 17 Dec 2015, at 08:11, Kevin Mcintyre <kebi...@gmail.com> wrote: > > &

[Twisted-Python] asynchronous response

2015-12-16 Thread Kevin Mcintyre
Hey - I'm confused, so nothing new :) ...but I'm running at this example and I'm scratching my head. http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html I would've thought 2 requests could be served simultaneously, but when I fire off 2 requests the first

Re: [Twisted-Python] asynchronous response

2015-12-16 Thread Kevin Mcintyre
Just a follow-up with my own sanity check example. http://twistedmatrix.com/documents/current/web/howto/web-in-60/asynchronous-deferred.html My conclusion is that deferLater is a blocking method - am I wrong? On Wed, Dec 16, 2015 at 4:11 PM, Kevin Mcintyre <kebi...@gmail.com> wrote:

Re: [Twisted-Python] Dumb Logger API question

2015-11-10 Thread Kevin Mcintyre
erver" cause I'm wondering if myobservers is a core package. On Tue, Nov 10, 2015 at 6:05 PM, Glyph Lefkowitz <gl...@twistedmatrix.com> wrote: > > On Nov 9, 2015, at 2:29 PM, Kevin Mcintyre <kebi...@gmail.com> wrote: > > http://twistedmatrix.com/documents/current/core

[Twisted-Python] Dumb Logger API question

2015-11-09 Thread Kevin Mcintyre
http://twistedmatrix.com/documents/current/core/howto/logger.html I'm looking at the new-ish logger api and wonder how to log to console as a first step to transitioning. Any pointers? Thanks. ___ Twisted-Python mailing list

[Twisted-Python] can QtWebKit fire a twisted deferred?

2015-05-06 Thread Kevin Mcintyre
''' I know this is meant for pyqt but I've had little luck this that board. The short answer is yes, but it's a total hack...and I'm wondering if anybody has a more elegant solution. Specifically I would like to be able to fire a defer from the javascript instead of having to call alert.

Re: [Twisted-Python] can QtWebKit fire a twisted deferred?

2015-05-06 Thread Kevin Mcintyre
for the feedback. On Wed, May 6, 2015 at 3:35 PM, Glyph gl...@twistedmatrix.com wrote: On May 6, 2015, at 11:04 AM, Kevin Mcintyre kebi...@gmail.com wrote: ''' I know this is meant for pyqt but I've had little luck this that board. The short answer is yes, but it's a total hack...and I'm wondering

Re: [Twisted-Python] not terrible object oriented rpc system in js?

2014-12-27 Thread Kevin Mcintyre
flood with 50 permutations? On Sat, Dec 27, 2014 at 4:43 PM, Clayton Daley clayton.da...@gmail.com wrote: Not sure which features of PB matter to you, but I just started playing with Autobahn/Crossbar. It's - A JSON-based RPC (and/or pubsub) system, - With clients in many languages

Re: [Twisted-Python] pb.Copyable knowledge barrier

2014-09-08 Thread Kevin Mcintyre
AM, Kevin Mcintyre kebi...@gmail.com wrote: Jelly performance factors below expectations. I am not clear on the significance of this statement. Can we say Copyable is the lowest order jelly? The notion that a copy holder can't ask is my copy good anymore? makes it so. Essentially root

Re: [Twisted-Python] pb.Copyable knowledge barrier

2014-09-07 Thread Kevin Mcintyre
PM, Glyph gl...@twistedmatrix.com wrote: On Aug 8, 2014, at 9:17 PM, Kevin Mcintyre kebi...@gmail.com wrote: correction. I was stupidly reprocessing list on remote copy side. Seeing much better results now ~10K per second. Whew. I don't know exactly how well I would expect this perform

[Twisted-Python] pb.Copyable knowledge barrier

2014-08-08 Thread Kevin Mcintyre
goal: Give knowitall.py awareness of wordsmith.py addition. to run ./library.sh # opens 7999 for remote_dictionary and remote_define methods then both: python knowitall.py python wordsmith.py library.sh due to main/jelly issues from twisted.spread import pb class UknownWordException(Exception):

Re: [Twisted-Python] pb.Copyable knowledge barrier

2014-08-08 Thread Kevin Mcintyre
wordsmith argument order issues re-take. Cheers, Kevin On Thu, Aug 7, 2014 at 11:29 PM, Kevin Mcintyre kebi...@gmail.com wrote: goal: Give knowitall.py awareness of wordsmith.py addition. to run ./library.sh # opens 7999 for remote_dictionary and remote_define methods then both: python

Re: [Twisted-Python] pb.Copyable knowledge barrier

2014-08-08 Thread Kevin Mcintyre
, Kevin Mcintyre kebi...@gmail.com wrote: wordsmith argument order issues re-take. Cheers, Kevin On Thu, Aug 7, 2014 at 11:29 PM, Kevin Mcintyre kebi...@gmail.com wrote: goal: Give knowitall.py awareness of wordsmith.py addition. to run ./library.sh # opens 7999 for remote_dictionary

Re: [Twisted-Python] pb.Copyable knowledge barrier

2014-08-08 Thread Kevin Mcintyre
across the bus. Is that expected? On Fri, Aug 8, 2014 at 3:01 PM, Glyph Lefkowitz gl...@twistedmatrix.com wrote: On Aug 8, 2014, at 1:31 PM, Kevin Mcintyre kebi...@gmail.com wrote: I think so too, but I'm starting to lean toward websockets. The warnings alone right? Websockets are a layer

Re: [Twisted-Python] pb.Copyable knowledge barrier

2014-08-08 Thread Kevin Mcintyre
correction. I was stupidly reprocessing list on remote copy side. Seeing much better results now ~10K per second. On Fri, Aug 8, 2014 at 6:32 PM, Kevin Mcintyre kebi...@gmail.com wrote: I experimented today with a table scan from dynamodb. Taking each record and converting to a dictionary

Re: [Twisted-Python] Is there pb documentation somewhere?

2014-08-06 Thread Kevin Mcintyre
This discussion seems relevant to a design pattern Yearbook Lifecycle that I'm using for athleets.com and junkeet.com. Design Goal: 1) Maintain yearbooks across state, allowing students to delegate access control to classmates as a series of transformations (recursive web renders) - here sign my

Re: [Twisted-Python] dumb question on qt4reactor

2014-07-14 Thread Kevin Mcintyre
of see how it might work, but if your async process ever takes longer than your callLater delay it will break, and probably quite horribly. On Wed, Jul 9, 2014 at 12:11 PM, Kevin Mcintyre kebi...@gmail.com wrote: Another Oh right twisted moment. callInThread instead of callLater? This is a case

Re: [Twisted-Python] dumb question on qt4reactor

2014-07-09 Thread Kevin Mcintyre
Another Oh right twisted moment. callInThread instead of callLater? This is a case where I've been laying tracks for 2 years without totally understanding the train that was eventually coming down the tracks. I guess I implicitly understood by wanting to move to a separate reactor as a separate

[Twisted-Python] dumb question on qt4reactor

2014-07-05 Thread Kevin Mcintyre
calling reactor.callLater within qt4reactor in an attempt to async non webkit work but not seeing expected behavior. Webkit locks while the callLater function executes. Any insight appreciated. Should I move real work into separate reactor and broker calls into qt4reactor/webkit. I have xmlrpc

[Twisted-Python] XMLString clarification

2014-04-08 Thread Kevin Mcintyre
I'm still having trouble getting my multipart text/html from an email into XMLString. I run the html through beautifulsoup then remove the doctype, but if there's anything at all off about the resulting xml it still craps out. Is there anyway to stick an arbitrary string into a template? Or

Re: [Twisted-Python] XMLString clarification

2014-04-08 Thread Kevin Mcintyre
I've opted for placeholder and added callback to flatten. I'm a hack, and it was holding up delivery of email. On Tue, Apr 8, 2014 at 4:19 PM, Werner Thie wer...@thieprojects.ch wrote: Hi Kevin On 4/8/14 9:34 AM, Kevin Mcintyre wrote: I'm still having trouble getting my multipart text

Re: [Twisted-Python] XMLString clarification

2014-04-08 Thread Kevin Mcintyre
I will try to get a test class together to demonstrate. On Tue, Apr 8, 2014 at 4:38 PM, Kevin Mcintyre kebi...@gmail.com wrote: I've opted for placeholder and added callback to flatten. I'm a hack, and it was holding up delivery of email. On Tue, Apr 8, 2014 at 4:19 PM, Werner Thie wer

Re: [Twisted-Python] Using twisted for a smtp dialog

2014-04-02 Thread Kevin Mcintyre
I've been working a lot with smtp and twisted is great for easily doing what you're describing. Have a look at the smtpclient docs...that should get you most of the way there. http://twistedmatrix.com/documents/current/mail/tutorial/smtpclient/smtpclient.html On Wed, Apr 2, 2014 at 9:03 AM,

[Twisted-Python] stmp client with multipart

2014-03-28 Thread Kevin Mcintyre
How can I get something similar into a smtp client 12? multipart message fn = example.mp3 multipart = MIMEMultipart('alternative') multipart['Subject'] = 'Tutorate!' multipart['To'] = 'Selfie' multipart['From'] = 'Selfie' text = Hello, how are you, goodbye. textpart =

Re: [Twisted-Python] stmp client with multipart

2014-03-28 Thread Kevin Mcintyre
ah, it just seems like the next smtp client (potentially 12) from the samples could be multipart mime. On Fri, Mar 28, 2014 at 3:12 PM, exar...@twistedmatrix.com wrote: On 08:36 pm, kebi...@gmail.com wrote: How can I get something similar into a smtp client 12? multipart message Hi Kevin,

[Twisted-Python] maybe video

2014-02-25 Thread kevin mcintyre
Wanted to share my qt4reactor webkit cv2 video capture script. It's comes in handy whenever I've needed to scrape just the browser and not my whole screen or capture unit tests etc. here is a demo quick demo in action: http://www.youtube.com/watch?v=2XMXtUISY1gfeature=youtu.be It's a hack, but

[Twisted-Python] web templating with html

2013-10-11 Thread kevin mcintyre
https://twistedmatrix.com/documents/current/web/howto/twisted-templates.html#auto7 I see the example with quoting, but what if I want to render html? I'm trying to get the text/html part of an email, and want to render as is. Thanks in advance. ___

[Twisted-Python] more complex IBodyProducer?

2013-03-18 Thread Kevin McIntyre
has anyone implemented a more complex IBodyProducer than class POSTRequestProducer(): implements(IBodyProducer) def __init__(self, body): self.body = body self.length = len(self.body) def startProducing(self, consumer): consumer.write(self.body) return

[Twisted-Python] protocol connectionLost clientConnectionLost

2012-06-07 Thread Kevin McIntyre
) if ( __name__ == __main__ ): reactor.connectTCP(74.125.224.242, 80, EchoClientFactory() ) #connect to google on port 80 reactor.run() -- Kevin McIntyre | Software Engineer | Green Charge Networks Cell 718-249-5058 | kmcint...@greenchargenet.com | www.greenchargenet.com

[Twisted-Python] DeprecationWarning and PotentialZombieWarning

2012-06-06 Thread Kevin McIntyre
IReactorFDSet. o = getattr (m, sym) -- Kevin McIntyre | Software Engineer | Green Charge Networks Cell 718-249-5058 | kmcint...@greenchargenet.com | www.greenchargenet.com ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http

[Twisted-Python] ProcessMonitor stderr stdout

2012-02-29 Thread Kevin McIntyre
Newbie question: I'm calling addProcess and everything works well, but I'm trying to understand how to capture/handle stderr stdout for that spawned process. -- Kevin McIntyre | Software Engineer | *Green Charge Networks* Cell 718-249-5058 | kmcint...@greenchargenet.com