[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 https://twistedmatrix.

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

2017-02-26 Thread Kevin Mcintyre
d for detecting segfaults? I'm thinking just to monitor /var/log/syslog On Sat, Feb 25, 2017 at 11:59 PM, Glyph Lefkowitz wrote: > > > On Feb 25, 2017, at 4:41 PM, Kevin Mcintyre wrote: > > > > I have a long running twisted pyqt process which occasionally throws a

[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 wrote: > > On Jan 30, 2017, at 19:44, Kevin Mc

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 is

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

2017-01-30 Thread Kevin Mcintyre
ce): isLeaf = True def render_POST(self, request): print request.content.getvalue() return request.content.getvalue() site = server.Site(Simple()) reactor.listenTCP(8080, site) reactor.run() On Mon, Jan 30, 2017 at 2:39 PM, Glyph Lefkowitz wrote: > > On Jan 30, 2017, at

[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 controllabl

Re: [Twisted-Python] web Resource question

2016-06-16 Thread Kevin Mcintyre
Hey, thanks for the reply. It seems like there's the possibility of more beneficial assignments...but first trying to understand if there's a specific reason for the child.server assignment. On Thu, Jun 16, 2016 at 5:11 AM, Cory Benfield wrote: > > > On 16 Jun 2016, at 05

[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 wrote: > > > > Hey - I'm co

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 wrote: > Hey - I'm conf

[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 rec

Re: [Twisted-Python] Dumb Logger API question

2015-11-10 Thread Kevin Mcintyre
rintingObserver" cause I'm wondering if myobservers is a core package. On Tue, Nov 10, 2015 at 6:05 PM, Glyph Lefkowitz wrote: > > On Nov 9, 2015, at 2:29 PM, Kevin Mcintyre wrote: > > http://twistedmatrix.com/documents/current/core/howto/logger.html > > I'm loo

[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@twistedmatri

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

2015-05-06 Thread Kevin Mcintyre
nk for the feedback. On Wed, May 6, 2015 at 3:35 PM, Glyph wrote: > > On May 6, 2015, at 11:04 AM, Kevin Mcintyre 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

[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. Bel

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 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 (JS, Python, C++, etc

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

2014-09-08 Thread Kevin Mcintyre
that simplifies. who's the JellyCon2014 keynote speaker? *One* day we will have a conference - Tx/Rx, of course - and there will be a talk on this. But first we need several people in the community who wants their contribution to Twisted to be organization and community oriented rather t

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

2014-09-07 Thread Kevin Mcintyre
On Sat, Aug 9, 2014 at 6:58 PM, Glyph wrote: > On Aug 8, 2014, at 9:17 PM, Kevin Mcintyre 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

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 wrote: > I experimented today with a table scan from dynamodb. Taking each record > and converting to a dictionary into

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 wrote: > > On Aug 8, 2014, at 1:31 PM, Kevin Mcintyre 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
some funny issues with Cacheable > > https://twistedmatrix.com/trac/ticket/7274 > > Daniel > > > On Fri, Aug 8, 2014 at 8:01 AM, Kevin Mcintyre wrote: > >> The question is what's necessary to get knowitall.py to receive updates >> to held copy. >> >

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

2014-08-08 Thread Kevin Mcintyre
t; On Thu, Aug 7, 2014 at 11:42 PM, Kevin Mcintyre wrote: > >> wordsmith argument order issues re-take. >> >> Cheers, >> Kevin >> >> >> On Thu, Aug 7, 2014 at 11:29 PM, Kevin Mcintyre >> wrote: >> >>> goal: Give knowitall.py awareness of

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

2014-08-07 Thread Kevin Mcintyre
wordsmith argument order issues re-take. Cheers, Kevin On Thu, Aug 7, 2014 at 11:29 PM, Kevin Mcintyre 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: > p

[Twisted-Python] pb.Copyable knowledge barrier

2014-08-07 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] 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 m

Re: [Twisted-Python] dumb question on qt4reactor

2014-07-14 Thread Kevin Mcintyre
t ever _should_ > be. I can kind 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 wrote: > >> Another "Oh

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 separat

[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 xmlrp

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 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

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 wrote: > Hi Kevin > > > On 4/8/14 9:34 AM, Kevin Mcintyre wrote: > >> I'm still having trouble ge

[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 shou

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, Gri

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, wrote: > On 08:36 pm, kebi...@gmail.com wrote: > >> How can I get something similar into a smtp client 12? multipart message >> > > Hi Kevin, > > MIME and SMTP

[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." textpar

[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=2XMXtUISY1g&feature=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. ___ Twi

[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
reason ReconnectingClientFactory.clientConnectionFailed(self, connector, reason) if ( __name__ == "__main__" ): reactor.connectTCP("74.125.224.242", 80, EchoClientFactory() ) #connect to google on port 80 reactor.run() -- Kevin McIntyre | Software Enginee

[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...@greencha