Questions tagged [gevent]

Gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent (libev after 1.0) event loop.

Gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent (libev after 1.0) event loop.

1147 questions
-1
votes
3 answers

osx 10.11.1 can't install gevent

when i install gevent on osx 10.11.1 , it have a question ,i can't fix it . This is a detailed process I installed 1: sudo port install libevent 2:sudo pip install greenlet 3:sudo pip install gevent $:sudo pip install gevent error: could not…
WeirdBird
  • 31
  • 2
-1
votes
1 answer

accomplish asynchronized response in flask

I'm setting up a site using python flask. When it confuses me, I am here to show my poor situation: ... @app.route('/wanted_delay_response') def delay_response(): def background_work(): # I want to check some flags in the background …
xete
  • 3
  • 1
-1
votes
1 answer

How to receive a file upload POST request using gevent on python

I have currently a small gevent Python application serving HTML files. I would like to be able to upload a small file. A form is made to send a file to the /file_upload path. What should I do to receive the file on the Python side to save it on…
leszek.hanusz
  • 5,152
  • 2
  • 38
  • 56
-1
votes
1 answer

Read timeout in gevent.socket

I'm able to open a connection using gevent.socket.create_connection self.socket = socket.create_connection(self.address,timeout=timeout) ... payload = "" while len(payload) < length: b = self.socket.recv(length - len(payload)) payload +=…
cdecker
  • 4,515
  • 8
  • 46
  • 75
-1
votes
2 answers

Calling multiple web-services - Node.js vs green threads

My webserver has to make calls to 3-4 web services. I was going to implement it in Node.js, but was considering gevent since I'm not a huge fan of callback code. I understand that green threads are similar in behavior to OS threads, and each thread…
tldr
  • 11,924
  • 15
  • 75
  • 120
-2
votes
1 answer

"Illegal instruction: 4" when running PyCharm debugger

I can’t get Pycharm in my current project to run the debugger. When I run the debugger, it just shows that the debug command exited: /Users/jeremie/.local/share/virtualenvs/proxi-server/bin/python…
Jeremie Ges
  • 2,747
  • 3
  • 22
  • 37
-2
votes
1 answer

SleekXMPP and Gevent

I am messing around with XMPP in Python, and I want to be able to spawn new processes to listen for messages over XMPP. I figured that I would use gevent to spawn new processes to listen for messages. I am just trying to write messages to a simple…
1 2 3
76
77